fix(qa): serialize runtime parity cells · openclaw/openclaw@640735c
vincentkoc
·
2026-05-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -138,6 +138,25 @@ describe("runtime parity", () => {
|
138 | 138 | expect(result.drift).toBe("none"); |
139 | 139 | }); |
140 | 140 | |
| 141 | +it("runs runtime cells serially so shared QA state cannot cross-contaminate", async () => { |
| 142 | +const events: string[] = []; |
| 143 | +const result = await runRuntimeParityScenario({ |
| 144 | +scenarioId: "serial", |
| 145 | +runCell: async (runtime) => { |
| 146 | +events.push(`start:${runtime}`); |
| 147 | +await Promise.resolve(); |
| 148 | +events.push(`finish:${runtime}`); |
| 149 | +return { |
| 150 | +scenarioStatus: "pass", |
| 151 | +cell: makeCell(runtime), |
| 152 | +}; |
| 153 | +}, |
| 154 | +}); |
| 155 | + |
| 156 | +expect(result.drift).toBe("none"); |
| 157 | +expect(events).toEqual(["start:pi", "finish:pi", "start:codex", "finish:codex"]); |
| 158 | +}); |
| 159 | + |
141 | 160 | it("classifies final-text-only differences as text-only", async () => { |
142 | 161 | const result = await runRuntimeParityScenario({ |
143 | 162 | scenarioId: "text-only", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。