fix: parse cleanup timeout env strictly · openclaw/openclaw@42688f5
steipete
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -224,6 +224,15 @@ describe("agent cleanup timeout", () => {
|
224 | 224 | }, |
225 | 225 | }), |
226 | 226 | ).toBe(AGENT_CLEANUP_STEP_TIMEOUT_MS); |
| 227 | +expect( |
| 228 | +resolveAgentCleanupStepTimeoutMs({ |
| 229 | +step: "openclaw-trajectory-flush", |
| 230 | +env: { |
| 231 | +OPENCLAW_TRAJECTORY_FLUSH_TIMEOUT_MS: "1e3", |
| 232 | +OPENCLAW_AGENT_CLEANUP_TIMEOUT_MS: "0x10", |
| 233 | +}, |
| 234 | +}), |
| 235 | +).toBe(AGENT_CLEANUP_STEP_TIMEOUT_MS); |
227 | 236 | }); |
228 | 237 | |
229 | 238 | it("logs cleanup rejection without throwing", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。