From 9f2f89320e76fba26bb13c3e6a45c12904bd5940 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 21 Apr 2026 01:21:05 +0100 Subject: [PATCH] test: use synthetic infra channel fixtures --- src/infra/install-safe-path.test.ts | 2 +- src/infra/outbound/delivery-queue.policy.test.ts | 2 +- src/infra/restart-sentinel.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/infra/install-safe-path.test.ts b/src/infra/install-safe-path.test.ts index a1cbed3dfad..30e2a5f753a 100644 --- a/src/infra/install-safe-path.test.ts +++ b/src/infra/install-safe-path.test.ts @@ -25,7 +25,7 @@ describe("packageNameMatchesId", () => { it.each([ { packageName: "@openclaw/matrix", id: "matrix", expected: true }, { packageName: "@openclaw/matrix", id: "@openclaw/matrix", expected: true }, - { packageName: "@openclaw/matrix", id: "signal", expected: false }, + { packageName: "@openclaw/matrix", id: "quietchat", expected: false }, { packageName: " ", id: "matrix", expected: false }, { packageName: "@openclaw/matrix", id: " ", expected: false }, ])("matches ids for %j", ({ packageName, id, expected }) => { diff --git a/src/infra/outbound/delivery-queue.policy.test.ts b/src/infra/outbound/delivery-queue.policy.test.ts index a2da4aa7470..09cedcca9e4 100644 --- a/src/infra/outbound/delivery-queue.policy.test.ts +++ b/src/infra/outbound/delivery-queue.policy.test.ts @@ -9,7 +9,7 @@ describe("delivery-queue policy", () => { describe("isPermanentDeliveryError", () => { it.each([ "No conversation reference found for user:abc", - "Telegram send failed: chat not found (chat_id=user:123)", + "Forum send failed: chat not found (chat_id=user:123)", "403: Forbidden: bot is not a member of the channel chat", "user not found", "Bot was blocked by the user", diff --git a/src/infra/restart-sentinel.test.ts b/src/infra/restart-sentinel.test.ts index 220cbcd8102..631f5f4fde2 100644 --- a/src/infra/restart-sentinel.test.ts +++ b/src/infra/restart-sentinel.test.ts @@ -33,7 +33,7 @@ describe("restart sentinel", () => { kind: "update" as const, status: "ok" as const, ts: Date.now(), - sessionKey: "agent:main:whatsapp:dm:+15555550123", + sessionKey: "agent:main:mobilechat:dm:+15555550123", stats: { mode: "git" }, }; const filePath = await writeRestartSentinel(payload);