Skip to content

test: give the infinite-loop timeout test room on a busy machine - #4

Merged
flipcyde101 merged 1 commit into
mainfrom
work/deflake-timeout-test-20261129
Nov 29, 2026
Merged

flipcyde101 merged 1 commit into
mainfrom
work/deflake-timeout-test-20261129

Conversation

@flipcyde101

Copy link
Copy Markdown
Owner

The infinite-loop test passed timeoutMs: 600, which limits the baseline run as well as the mutant. On a loaded Windows machine Node alone took longer than that to start, so the baseline timed out and failed prepublishOnly during the 0.1.1 release.

The limit is now 5000 ms and the test's own limit 30000 ms. The assertions are unchanged. Test-only change; nothing in the published package differs.

Verification

  • Reproduced by delaying every Node process by 700 ms: this test failed with the same baseline timeout and the other 36 passed.
  • After the change: 37 of 37 pass with delays of 700 ms and 1500 ms, and without a delay. tsc --noEmit clean.
  • Control: with the TIMEOUT classification disabled, the test fails (expected 'KILLED' to be 'TIMEOUT').
  • killdiff 0.1.1 over 4dd806c...HEAD with the full suite: 14 of 15 mutants killed; the survivor is equivalent.

The test used timeoutMs 600, which also limits the baseline run. On a
loaded machine Node alone can take longer to start, so the baseline
timed out and blocked a publish. The limit is now 5000 ms and the test
limit 30000 ms. It still asserts that the looping mutant is a TIMEOUT.
@sonarqubecloud

Copy link
Copy Markdown

@flipcyde101
flipcyde101 merged commit 9690621 into main Nov 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant