@@ -316,7 +316,7 @@ describe("release user journey assertions", () => {
|
316 | 316 | withEnv({ HOME: home, OPENCLAW_RELEASE_USER_JOURNEY_HTTP_TIMEOUT_MS: "100" }, () => |
317 | 317 | runReleaseUserJourneyAssertion("wait-clickclack-socket", [ |
318 | 318 | `http://127.0.0.1:${server.port}`, |
319 | | -"0.2", |
| 319 | +"1", |
320 | 320 | ]), |
321 | 321 | ), |
322 | 322 | ).rejects.toThrow("Timed out waiting for ClickClack websocket connection"); |
@@ -339,7 +339,7 @@ describe("release user journey assertions", () => {
|
339 | 339 | withEnv({ HOME: home, OPENCLAW_RELEASE_USER_JOURNEY_HTTP_TIMEOUT_MS: "100ms" }, () => |
340 | 340 | runReleaseUserJourneyAssertion("wait-clickclack-socket", [ |
341 | 341 | `http://127.0.0.1:${server.port}`, |
342 | | -"0.2", |
| 342 | +"1", |
343 | 343 | ]), |
344 | 344 | ), |
345 | 345 | ).rejects.toThrow( |
@@ -351,6 +351,33 @@ describe("release user journey assertions", () => {
|
351 | 351 | } |
352 | 352 | }); |
353 | 353 | |
| 354 | +it("rejects loose ClickClack wait timeout args instead of parsing prefixes", async () => { |
| 355 | +const root = mkdtempSync(path.join(tmpdir(), "openclaw-release-user-assertions-")); |
| 356 | +const home = path.join(root, "home"); |
| 357 | +const statePath = path.join(root, "state.json"); |
| 358 | + |
| 359 | +try { |
| 360 | +await expect( |
| 361 | +withEnv({ HOME: home }, () => |
| 362 | +runReleaseUserJourneyAssertion("wait-clickclack-socket", ["http://127.0.0.1:9", "1e3"]), |
| 363 | +), |
| 364 | +).rejects.toThrow( |
| 365 | +'ClickClack websocket timeout seconds must be a positive integer. Got: "1e3"', |
| 366 | +); |
| 367 | +await expect( |
| 368 | +withEnv({ HOME: home }, () => |
| 369 | +runReleaseUserJourneyAssertion("wait-clickclack-reply", [ |
| 370 | +statePath, |
| 371 | +"OPENCLAW_E2E_OK", |
| 372 | +"30s", |
| 373 | +]), |
| 374 | +), |
| 375 | +).rejects.toThrow('ClickClack reply timeout seconds must be a positive integer. Got: "30s"'); |
| 376 | +} finally { |
| 377 | +rmSync(root, { force: true, recursive: true }); |
| 378 | +} |
| 379 | +}); |
| 380 | + |
354 | 381 | it("bounds ClickClack fixture error response bodies", async () => { |
355 | 382 | const root = mkdtempSync(path.join(tmpdir(), "openclaw-release-user-assertions-")); |
356 | 383 | const home = path.join(root, "home"); |
|