fix: parse qa parent pid strictly · openclaw/openclaw@b2fdbc5
steipete
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,6 +13,10 @@ describe("installQaParentWatchdog", () => {
|
13 | 13 | expect( |
14 | 14 | installQaParentWatchdog({ env: { [QA_PARENT_PID_ENV]: "not-a-pid" }, ownPid: 10 }), |
15 | 15 | ).toBeNull(); |
| 16 | +expect( |
| 17 | +installQaParentWatchdog({ env: { [QA_PARENT_PID_ENV]: "0x10" }, ownPid: 10 }), |
| 18 | +).toBeNull(); |
| 19 | +expect(installQaParentWatchdog({ env: { [QA_PARENT_PID_ENV]: "1e3" }, ownPid: 10 })).toBeNull(); |
16 | 20 | }); |
17 | 21 | |
18 | 22 | it("exits when the QA parent process disappears", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。