test(codex): wait for diagnostic event locally · openclaw/openclaw@083377a
steipete
·
2026-05-26
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6830,7 +6830,13 @@ describe("runCodexAppServerAttempt", () => {
|
6830 | 6830 | await harness.waitForMethod("turn/start"); |
6831 | 6831 | await harness.completeTurn({ threadId: "thread-1", turnId: "turn-1" }); |
6832 | 6832 | await run; |
6833 | | -await flushDiagnosticEvents(); |
| 6833 | +await vi.waitFor( |
| 6834 | +() => |
| 6835 | +expect(diagnosticEvents.some((event) => event.type === "model.call.completed")).toBe( |
| 6836 | +true, |
| 6837 | +), |
| 6838 | +fastWait, |
| 6839 | +); |
6834 | 6840 | |
6835 | 6841 | const startedEvent = diagnosticEvents.find((event) => event.type === "model.call.started"); |
6836 | 6842 | const completedEvent = diagnosticEvents.find( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。