mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:10:44 +00:00
test: avoid polling settled acp reconnect
This commit is contained in:
@@ -537,11 +537,10 @@ describe("acp translator stop reason mapping", () => {
|
||||
await Promise.resolve();
|
||||
agent.handleGatewayReconnect();
|
||||
|
||||
await vi.waitFor(() => {
|
||||
expect(settleSpy).toHaveBeenCalledWith({
|
||||
kind: "resolve",
|
||||
value: { stopReason: "end_turn" },
|
||||
});
|
||||
await expect(promptPromise).resolves.toEqual({ stopReason: "end_turn" });
|
||||
expect(settleSpy).toHaveBeenCalledWith({
|
||||
kind: "resolve",
|
||||
value: { stopReason: "end_turn" },
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user