mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 22:34:32 +00:00
fix(typing): stop keepalive restarts after run completion (land #27413, thanks @widingmarcus-cyber)
Co-authored-by: Marcus Widing <widing.marcus@gmail.com>
This commit is contained in:
@@ -142,7 +142,7 @@ describe("typing controller", () => {
|
||||
typing.markDispatchIdle();
|
||||
}
|
||||
await vi.advanceTimersByTimeAsync(2_000);
|
||||
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(5);
|
||||
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(testCase.first === "run" ? 3 : 5);
|
||||
|
||||
if (testCase.second === "run") {
|
||||
typing.markRunComplete();
|
||||
@@ -150,7 +150,7 @@ describe("typing controller", () => {
|
||||
typing.markDispatchIdle();
|
||||
}
|
||||
await vi.advanceTimersByTimeAsync(2_000);
|
||||
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(5);
|
||||
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(testCase.first === "run" ? 3 : 5);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user