test(status): keep pi status expectation for openai routes · openclaw/openclaw@34ca9ad
vincentkoc
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -638,19 +638,19 @@ describe("buildStatusReply subagent summary", () => {
|
638 | 638 | }, |
639 | 639 | ...commonParams, |
640 | 640 | }); |
641 | | -const implicitCodexText = await buildStatusText({ |
| 641 | +const piText = await buildStatusText({ |
642 | 642 | cfg: baseCfg, |
643 | 643 | ...commonParams, |
644 | 644 | }); |
645 | 645 | |
646 | 646 | const normalizedCodex = normalizeTestText(codexText); |
647 | | -const normalizedImplicitCodex = normalizeTestText(implicitCodexText); |
| 647 | +const normalizedPi = normalizeTestText(piText); |
648 | 648 | expect(normalizedCodex).toContain("Model: openai/gpt-5.5"); |
649 | 649 | expect(normalizedCodex).toContain("oauth (openai-codex:status)"); |
650 | 650 | expect(normalizedCodex).toContain("openai-codex:status"); |
651 | | -expect(normalizedImplicitCodex).toContain("Model: openai/gpt-5.5"); |
652 | | -expect(normalizedImplicitCodex).toContain("oauth (openai-codex:status)"); |
653 | | -expect(normalizedImplicitCodex).toContain("Runtime: OpenAI Codex"); |
| 651 | +expect(normalizedPi).toContain("Model: openai/gpt-5.5"); |
| 652 | +expect(normalizedPi).toContain("unknown"); |
| 653 | +expect(normalizedPi).not.toContain("openai-codex:status"); |
654 | 654 | }, |
655 | 655 | { |
656 | 656 | env: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。