test: clarify qa host env assertions · openclaw/openclaw@12aa508
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -590,7 +590,7 @@ describe("buildQaRuntimeEnv", () => {
|
590 | 590 | expect(processKill).toHaveBeenCalledWith(-12345, "SIGTERM"); |
591 | 591 | expect(processKill).toHaveBeenCalledWith(-12345, "SIGKILL"); |
592 | 592 | } |
593 | | -expect(child.exitCode !== null || child.signalCode !== null).toBe(true); |
| 593 | +expect([child.exitCode, child.signalCode]).not.toEqual([null, null]); |
594 | 594 | }); |
595 | 595 | |
596 | 596 | it("treats bind collisions as retryable gateway startup errors", () => { |
@@ -999,7 +999,11 @@ describe("qa bundled plugin dir", () => {
|
999 | 999 | "shared-chunk-abc123.js", |
1000 | 1000 | ), |
1001 | 1001 | ); |
1002 | | -expect(sharedChunkStat.isFile() || sharedChunkStat.isSymbolicLink()).toBe(true); |
| 1002 | +if (sharedChunkStat.isFile()) { |
| 1003 | +expect(sharedChunkStat.isFile()).toBe(true); |
| 1004 | +} else { |
| 1005 | +expect(sharedChunkStat.isSymbolicLink()).toBe(true); |
| 1006 | +} |
1003 | 1007 | }); |
1004 | 1008 | |
1005 | 1009 | it("preserves dist-runtime-only root chunks when dist also exists", async () => { |
@@ -1074,7 +1078,11 @@ describe("qa bundled plugin dir", () => {
|
1074 | 1078 | "runtime-chunk.js", |
1075 | 1079 | ), |
1076 | 1080 | ); |
1077 | | -expect(runtimeChunkStat.isFile() || runtimeChunkStat.isSymbolicLink()).toBe(true); |
| 1081 | +if (runtimeChunkStat.isFile()) { |
| 1082 | +expect(runtimeChunkStat.isFile()).toBe(true); |
| 1083 | +} else { |
| 1084 | +expect(runtimeChunkStat.isSymbolicLink()).toBe(true); |
| 1085 | +} |
1078 | 1086 | }); |
1079 | 1087 | |
1080 | 1088 | it("rejects invalid bundled plugin ids before staging paths are built", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。