fix(治理): 完成任务 8 安全与通知闭环修复

- 串行化拉黑、处罚、投瓶和匹配策略检查\n- 完成异步站内通知、未读统计和偏好并发语义\n- 补齐后台查询审计、处罚恢复和隐私测试\n- 稳定 Redis 恢复、匹配锁序及超时测试
This commit is contained in:
root
2026-09-17 13:08:55 +08:00
parent ce8e1db279
commit fa0fa78312
29 changed files with 1231 additions and 153 deletions
+3 -1
View File
@@ -390,7 +390,9 @@ describe("API infrastructure", () => {
const previousUrl = process.env.REDIS_URL;
const previousTimeout = process.env.REDIS_PROBE_TIMEOUT_MS;
process.env.REDIS_URL = "redis://127.0.0.1:1";
process.env.REDIS_PROBE_TIMEOUT_MS = "100";
// A real reconnect plus PING can exceed 100 ms under full-suite load.
// Keep the strict deadline in the dedicated never-answering-connection test.
process.env.REDIS_PROBE_TIMEOUT_MS = "1000";
const warning = vi
.spyOn(Logger.prototype, "warn")
.mockImplementation(() => undefined);