test: tighten lifecycle billing assertion · openclaw/openclaw@3925370
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,11 +30,8 @@ describe("subscribeEmbeddedPiSession lifecycle billing errors", () => {
|
30 | 30 | }); |
31 | 31 | |
32 | 32 | const lifecycleError = findLifecycleErrorAgentEvent(onAgentEvent.mock.calls); |
33 | | -expect(lifecycleError).toMatchObject({ |
34 | | -stream: "lifecycle", |
35 | | -data: { |
36 | | -error: expect.stringContaining("Anthropic (claude-3-5-sonnet)"), |
37 | | -}, |
38 | | -}); |
| 33 | +expect(lifecycleError?.stream).toBe("lifecycle"); |
| 34 | +expect(lifecycleError?.data?.phase).toBe("error"); |
| 35 | +expect(lifecycleError?.data?.error).toContain("Anthropic (claude-3-5-sonnet)"); |
39 | 36 | }); |
40 | 37 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。