test: tighten gateway runtime assertions · openclaw/openclaw@e8dc492
steipete
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -93,10 +93,8 @@ describe("gateway HTTP request trace scope", () => {
|
93 | 93 | .split("\n") |
94 | 94 | .map((line) => JSON.parse(line) as Record<string, unknown>) |
95 | 95 | .find((record) => record.message === "handled request trace"); |
96 | | -expect(traceRecord).toMatchObject({ |
97 | | -traceId: activeTraceInHandler?.traceId, |
98 | | -spanId: activeTraceInHandler?.spanId, |
99 | | -}); |
| 96 | +expect(traceRecord?.traceId).toBe(activeTraceInHandler?.traceId); |
| 97 | +expect(traceRecord?.spanId).toBe(activeTraceInHandler?.spanId); |
100 | 98 | } finally { |
101 | 99 | fs.rmSync(dir, { recursive: true, force: true }); |
102 | 100 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。