mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 13:01:24 +00:00
perf(test): remove timer waits in hooks and discord monitor tests
This commit is contained in:
@@ -109,7 +109,7 @@ describe("hooks", () => {
|
||||
|
||||
it("should handle async handlers", async () => {
|
||||
const handler = vi.fn(async () => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 10));
|
||||
await Promise.resolve();
|
||||
});
|
||||
|
||||
registerInternalHook("command:new", handler);
|
||||
|
||||
Reference in New Issue
Block a user