mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test(perf): trim fixed waits in relay and startup tests
This commit is contained in:
@@ -115,16 +115,15 @@ describe("linePlugin gateway.startAccount", () => {
|
||||
}),
|
||||
);
|
||||
|
||||
// Allow async internals (probeLineBot await) to flush
|
||||
await new Promise((r) => setTimeout(r, 20));
|
||||
|
||||
expect(monitorLineProvider).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
channelAccessToken: "token",
|
||||
channelSecret: "secret",
|
||||
accountId: "default",
|
||||
}),
|
||||
);
|
||||
await vi.waitFor(() => {
|
||||
expect(monitorLineProvider).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
channelAccessToken: "token",
|
||||
channelSecret: "secret",
|
||||
accountId: "default",
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
abort.abort();
|
||||
await task;
|
||||
|
||||
Reference in New Issue
Block a user