mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
fix(scripts): reject unsafe startup memory timeouts
This commit is contained in:
@@ -86,6 +86,11 @@ describe("check-cli-startup-memory", () => {
|
||||
OPENCLAW_STARTUP_MEMORY_TIMEOUT_MS: "1000.5",
|
||||
}),
|
||||
).toThrow("OPENCLAW_STARTUP_MEMORY_TIMEOUT_MS must be a positive integer");
|
||||
expect(() =>
|
||||
testing.readPositiveIntEnv("OPENCLAW_STARTUP_MEMORY_TIMEOUT_MS", 60_000, {
|
||||
OPENCLAW_STARTUP_MEMORY_TIMEOUT_MS: String(Number.MAX_SAFE_INTEGER + 1),
|
||||
}),
|
||||
).toThrow("OPENCLAW_STARTUP_MEMORY_TIMEOUT_MS must be a positive integer");
|
||||
expect(
|
||||
testing.readPositiveIntEnv("OPENCLAW_STARTUP_MEMORY_TIMEOUT_MS", 60_000, {
|
||||
OPENCLAW_STARTUP_MEMORY_TIMEOUT_MS: "1000",
|
||||
|
||||
Reference in New Issue
Block a user