mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 02:00:42 +00:00
test: tighten discord startup delay assertion
This commit is contained in:
@@ -655,8 +655,12 @@ describe("discordPlugin outbound", () => {
|
||||
expect(sleepWithAbortMock).not.toHaveBeenCalled();
|
||||
|
||||
// Second account (index 1) — 10s delay
|
||||
await startDiscordAccount(cfg, "zeta");
|
||||
expect(sleepWithAbortMock).toHaveBeenCalledWith(10_000, expect.any(Object));
|
||||
const zetaContext = createStartAccountContext({
|
||||
account: resolveAccount(cfg, "zeta"),
|
||||
cfg,
|
||||
});
|
||||
await discordPlugin.gateway!.startAccount!(zetaContext);
|
||||
expect(sleepWithAbortMock).toHaveBeenCalledWith(10_000, zetaContext.abortSignal);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user