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

gh-127258: Fix asyncio test_staggered_race_with_eager_tasks() #127259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 25, 2024

Use a longer sleep for the "sleep2" task, 60 seconds instead of 2 seconds, to make sure that "sleep1" task (1 second) is more likely to win the race.

Use a longer sleep for the "sleep2" task, 60 seconds instead of 2
seconds, to make sure that "sleep1" task (1 second) is more likely to
win the race.
@1st1
Copy link
Member

1st1 commented Nov 25, 2024

Maybe just add 2 locks and use them to serialize things properly? Sleeps will never work reliably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants