

















@@ -995,6 +995,7 @@ describe("matrix live qa scenarios", () => {
995995const stateRoot = await mkdtemp(path.join(os.tmpdir(), "matrix-stale-sync-"));
996996try {
997997const accountDir = path.join(stateRoot, "matrix", "accounts", "sut", "server", "token");
998+const staleSyncRoomId = "!stale-sync:matrix-qa.test";
998999const syncStorePath = path.join(accountDir, "bot-storage.json");
9991000const dedupeStorePath = path.join(accountDir, "inbound-dedupe.json");
10001001await mkdir(accountDir, { recursive: true });
@@ -1025,7 +1026,7 @@ describe("matrix live qa scenarios", () => {
10251026version: 1,
10261027entries: [
10271028{
1028-key: "!restart:matrix-qa.test|$first-trigger",
1029+key: `${staleSyncRoomId}|$first-trigger`,
10291030ts: Date.now(),
10301031},
10311032],
@@ -1034,7 +1035,7 @@ describe("matrix live qa scenarios", () => {
10341035return {
10351036event: {
10361037kind: "message",
1037-roomId: "!restart:matrix-qa.test",
1038+roomId: staleSyncRoomId,
10381039eventId: kind === "fresh" ? "$fresh-reply" : "$first-reply",
10391040sender: "@sut:matrix-qa.test",
10401041type: "m.room.message",
@@ -1086,17 +1087,17 @@ describe("matrix live qa scenarios", () => {
10861087defaultRoomKey: "main",
10871088rooms: [
10881089{
1089-key: "restart",
1090+key: "stale-sync",
10901091kind: "group",
10911092memberRoles: ["driver", "observer", "sut"],
10921093memberUserIds: [
10931094"@driver:matrix-qa.test",
10941095"@observer:matrix-qa.test",
10951096"@sut:matrix-qa.test",
10961097],
1097-name: "Restart room",
1098+name: "Stale sync room",
10981099requireMention: true,
1099-roomId: "!restart:matrix-qa.test",
1100+roomId: staleSyncRoomId,
11001101},
11011102],
11021103},
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。