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

Use cached_property to create Futures #1038

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

Conversation

Gatsik
Copy link
Contributor

@Gatsik Gatsik commented Jan 22, 2025

Resolves #894

Also, fix one flaky test (test_game_matchmaking_start) by fully waiting for the game to start.

I took a look at other flaky tests, but I couldn't reproduce their flakiness: they had been continuing to pass.

The only flaky one which sometimes failed is test_game_matchmaking_close_fa_and_requeue, and I believe this is happening due to @fast_forward not working as wished with loop.run_in_executor futures.

Removing @fast_forward decorator fixes this test's flakiness, but increases runtime (from ~1 to about ~2.5 seconds), so I didn't touch that.

and avoid trying to access possibly non-existent event loop in init methods,
which allows to construct affected classes without a running event loop

fix flaky test
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.

RuntimeError raised when running some tests on their own
1 participant