test: wait for initial session task cleanup · openclaw/openclaw@00ab2f2
shakkernerd
·
2026-05-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -268,8 +268,12 @@ test("sessions.create can start the first agent turn from an initial task", asyn
|
268 | 268 | /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, |
269 | 269 | ); |
270 | 270 | expect(created.payload?.runStarted).toBe(true); |
271 | | -requireNonEmptyString(created.payload?.runId, "started run id"); |
| 271 | +const runId = requireNonEmptyString(created.payload?.runId, "started run id"); |
272 | 272 | expect(created.payload?.messageSeq).toBe(1); |
273 | 273 | |
| 274 | +const wait = await rpcReq(ws, "agent.wait", { runId, timeoutMs: 1_000 }); |
| 275 | +expect(wait.ok).toBe(true); |
| 276 | +expect(wait.payload?.status).toBe("ok"); |
| 277 | + |
274 | 278 | ws.close(); |
275 | 279 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。