Commit c5002a1
test(kernel-node-runtime): fix flaky reconnection backoff e2e test
'handles reconnection with exponential backoff' timed out at 60s on
some runs. The vat's sendRemoteMessage helper re-redeems the ocap URL
on every call; with testBackoffOptions.ackTimeoutMs=2_000, the
RemoteHandle gives up on redemption after ~8s (ackTimeoutMs ×
(MAX_RETRIES + 1)) — too short for kernel2 to finish its restart path
(new DB connection + kernel init + libp2p + relay connection + vat
launch) under load.
Apply the same fix PR #927 used on the sibling tests: create a
reconnectOptions bag overriding ackTimeoutMs to 5_000 (20s window),
and thread it through both setupAliceAndBob and
restartKernelAndReloadVat.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2175e11 commit c5002a1
1 file changed
Lines changed: 11 additions & 2 deletions
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
410 | 419 | | |
411 | 420 | | |
412 | 421 | | |
413 | 422 | | |
414 | 423 | | |
415 | 424 | | |
416 | | - | |
| 425 | + | |
417 | 426 | | |
418 | 427 | | |
419 | 428 | | |
| |||
445 | 454 | | |
446 | 455 | | |
447 | 456 | | |
448 | | - | |
| 457 | + | |
449 | 458 | | |
450 | 459 | | |
451 | 460 | | |
| |||
0 commit comments