mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 07:01:40 +00:00
test(whatsapp): fix stale append inbox expectation
This commit is contained in:
@@ -254,6 +254,7 @@ describe("web monitor inbox", () => {
|
||||
|
||||
it("handles append messages by marking them read but skipping auto-reply", async () => {
|
||||
const { onMessage, listener, sock } = await openInboxMonitor();
|
||||
const staleTs = Math.floor(Date.now() / 1000) - 300;
|
||||
|
||||
const upsert = {
|
||||
type: "append",
|
||||
@@ -265,7 +266,7 @@ describe("web monitor inbox", () => {
|
||||
remoteJid: "999@s.whatsapp.net",
|
||||
},
|
||||
message: { conversation: "old message" },
|
||||
messageTimestamp: nowSeconds(),
|
||||
messageTimestamp: staleTs,
|
||||
pushName: "History Sender",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user