test: tighten concurrent oauth assertion · openclaw/openclaw@7699ea3
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -117,10 +117,11 @@ describe("resolveApiKeyForProfile cross-agent refresh coordination (#26322)", ()
|
117 | 117 | expect(callCount).toBe(1); |
118 | 118 | expect(results).toHaveLength(agentCount); |
119 | 119 | for (const result of results) { |
120 | | -expect(result).toMatchObject({ |
121 | | -apiKey: "cross-agent-refreshed-access", |
122 | | - provider, |
123 | | -}); |
| 120 | +if (!result) { |
| 121 | +throw new Error("Expected refreshed OAuth credential result"); |
| 122 | +} |
| 123 | +expect(result.apiKey).toBe("cross-agent-refreshed-access"); |
| 124 | +expect(result.provider).toBe(provider); |
124 | 125 | } |
125 | 126 | }, 10_000); |
126 | 127 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。