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

Make createPlayer have a small delay #98

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Conversation

erikdubbelboer
Copy link
Member

@erikdubbelboer erikdubbelboer commented Jun 16, 2024

Give the Network a little bit of time to connect to the signalling backend before we continue with the next step. This makes our tests less flaky. Found out when some lobby tests where we create multiple players after each other was failing because their ID was changing (as they are given out in order).

Give the Network a little bit of time to connect to the signalling
backend before we continue with the next step. This makes our tests less
flakey.
Copy link
Collaborator

@koenbollen koenbollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try 10ms or 50ms? 100ms per player per test extra quite a hit on our test time.

@erikdubbelboer
Copy link
Member Author

Lowered it to 50ms, with lower tests sometimes fail.

@erikdubbelboer erikdubbelboer merged commit 0c99ee9 into main Jun 18, 2024
1 check passed
@erikdubbelboer erikdubbelboer deleted the async-createPlayer branch June 18, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants