test(release): use usage accumulator fixture · openclaw/openclaw@ae5591e
steipete
·
2026-05-16
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner/run
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { AssistantMessage } from "@earendil-works/pi-ai"; |
2 | 2 | import { describe, expect, it } from "vitest"; |
| 3 | +import { createUsageAccumulator } from "../usage-accumulator.js"; |
3 | 4 | import { |
4 | 5 | buildErrorAgentMeta, |
5 | 6 | resolveFinalAssistantRawText, |
@@ -86,7 +87,7 @@ describe("buildErrorAgentMeta", () => {
|
86 | 87 | sessionFile: "/tmp/session-rotated.jsonl", |
87 | 88 | provider: "anthropic", |
88 | 89 | model: "claude-opus-4-6", |
89 | | -usageAccumulator: {}, |
| 90 | +usageAccumulator: createUsageAccumulator(), |
90 | 91 | lastRunPromptUsage: undefined, |
91 | 92 | }), |
92 | 93 | ).toMatchObject({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。