mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 18:00:43 +00:00
test: tighten talkback abort assertion
This commit is contained in:
@@ -218,7 +218,10 @@ describe("realtime voice agent talkback queue", () => {
|
||||
queue.close();
|
||||
await vi.runAllTimersAsync();
|
||||
|
||||
expect(signal?.aborted).toBe(true);
|
||||
if (!signal) {
|
||||
throw new Error("Expected talkback consult abort signal");
|
||||
}
|
||||
expect(signal.aborted).toBe(true);
|
||||
expect(deliver).not.toHaveBeenCalled();
|
||||
expect(logger.warn).not.toHaveBeenCalled();
|
||||
vi.useRealTimers();
|
||||
|
||||
Reference in New Issue
Block a user