Skip to content

fix: add sleep to fibonacci test#14

Merged
limeytexan merged 1 commit intomainfrom
fix/fibonacci-sleep
Feb 24, 2025
Merged

fix: add sleep to fibonacci test#14
limeytexan merged 1 commit intomainfrom
fix/fibonacci-sleep

Conversation

@limeytexan
Copy link
Copy Markdown
Contributor

@limeytexan limeytexan commented Feb 21, 2025

I hadn't added a sleep to the fibonacci test previously because the delays added by the math being performed has always been sufficient to ensure that lines sent to stdout and stderr don't arrive out of order. But apparently the hydra.nixos.org build farm has faster machines because one managed to trip the race condition (once): https://hydra.nixos.org/build/290187717/log

Adding 10ms sleep to make it signficantly more likely that lines sent to stdout and stderr will arrive in the right order.

I hadn't added a sleep to the fibonacci test previously because the delays
added by the math being performed has always been sufficient to ensure that
lines sent to stdout and stderr don't arrive out of order. But apparently
the hydra.nixos.org build farm has faster machines because one managed to
trip the race condition: https://hydra.nixos.org/build/290187717/log

Adding 10ms sleep to make it signficantly more likely that lines sent to
stdout and stderr will arrive in the right order.
@limeytexan limeytexan merged commit 99cd8e1 into main Feb 24, 2025
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.

2 participants