Skip to content

test(desktop): the PDF quiet-limit test no longer fails when the machine is busy - #2

Merged
triggeredcode merged 1 commit into
mainfrom
fix-pdf-timing-test
Oct 11, 2026
Merged

triggeredcode merged 1 commit into
mainfrom
fix-pdf-timing-test

Conversation

@triggeredcode

Copy link
Copy Markdown
Owner

electron/pdf.test.ts › lets an engine that keeps downloading run longer than the quiet limit failed once in about six full unit runs: the stand-in engine script had to print its first line within the 1 s quiet limit, and a slow start of the script while the whole suite runs in parallel can exceed that (it surfaced as expected false to be true on r.ok).

The limit is now 2 s (five times the 0.4 s print interval) with an engine that prints for about 5 s, so the test still proves what it is for: an engine that keeps printing is allowed to run longer than the quiet limit. The other test that shares the 6-file script is unchanged.

Checked: the file 3 times alone and the full unit suite twice, all passing.

🤖 Generated with Claude Code

…s when the machine is busy

The stand-in engine had to print its first line within 1 s, which a slow start of the
script under the parallel test run sometimes missed (one failure in about six full runs).
The limit is now 2 s with an engine that prints for about 5 s, so the test still shows
that an engine which keeps printing runs longer than the limit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@triggeredcode
triggeredcode merged commit d5b3527 into main Oct 11, 2026
1 check passed
@triggeredcode
triggeredcode deleted the fix-pdf-timing-test branch October 12, 2026 15:40
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