test: use synthetic infra channel fixtures

This commit is contained in:
Peter Steinberger
2026-04-21 01:21:05 +01:00
parent 14ceec27fa
commit 9f2f89320e
3 changed files with 3 additions and 3 deletions

View File

@@ -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 }) => {

View File

@@ -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",

View File

@@ -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);