mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:50:43 +00:00
test: relax detached task recovery timing assertion
This commit is contained in:
@@ -225,7 +225,11 @@ describe("detached-task-runtime", () => {
|
||||
expect(result).toEqual({ recovered: false });
|
||||
expect(mockLogWarn).toHaveBeenCalledWith(
|
||||
"Detached task recovery hook threw, proceeding with markTaskLost",
|
||||
expect.objectContaining({ taskId: "task-throw", runtime: "acp", elapsedMs: 0 }),
|
||||
expect.objectContaining({
|
||||
taskId: "task-throw",
|
||||
runtime: "acp",
|
||||
elapsedMs: expect.any(Number),
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user