mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:10:43 +00:00
test: use synthetic infra channel fixtures
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user