mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 19:14:58 +00:00
perf(test): tighten subagent announce retry give-up wait
This commit is contained in:
@@ -290,7 +290,7 @@ describe("subagent registry steer restarts", () => {
|
|||||||
expect(announceSpy).toHaveBeenCalledTimes(3);
|
expect(announceSpy).toHaveBeenCalledTimes(3);
|
||||||
expect(mod.listSubagentRunsForRequester("agent:main:main")[0]?.announceRetryCount).toBe(3);
|
expect(mod.listSubagentRunsForRequester("agent:main:main")[0]?.announceRetryCount).toBe(3);
|
||||||
|
|
||||||
await vi.advanceTimersByTimeAsync(10_000);
|
await vi.advanceTimersByTimeAsync(4_001);
|
||||||
expect(announceSpy).toHaveBeenCalledTimes(3);
|
expect(announceSpy).toHaveBeenCalledTimes(3);
|
||||||
expect(mod.listSubagentRunsForRequester("agent:main:main")[0]?.cleanupCompletedAt).toBeTypeOf(
|
expect(mod.listSubagentRunsForRequester("agent:main:main")[0]?.cleanupCompletedAt).toBeTypeOf(
|
||||||
"number",
|
"number",
|
||||||
|
|||||||
Reference in New Issue
Block a user