test(whatsapp): fix stale append inbox expectation

This commit is contained in:
Peter Steinberger
2026-03-15 07:57:26 -07:00
parent c4265a5f16
commit b2e9221a8c

View File

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