Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add sleep to fibonacci test #14

Merged
merged 1 commit into from
Feb 24, 2025
Merged

fix: add sleep to fibonacci test #14

merged 1 commit into from
Feb 24, 2025

Conversation

limeytexan
Copy link
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
4 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.

2 participants