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

Refactor group timeouts #58

Merged
merged 2 commits into from
Apr 21, 2024
Merged

Conversation

brandonsturgeon
Copy link
Member

The group timeouts were a hacky feature. I probably added it as a band-aid fix to stuck test runs.

However, it also introduced unexpected and arguably undocumented functionality.
When a user reads that async test cases have a default timeout of 60 seconds, they assume that omitting timeout = from their test case would simply make that value default to 60.

Instead, there was a per-group timer that would continue to the next test group if it expired. This isn't technically the same behavior, and should be simplified.

With this change, a timer is created for every single case with no group timeout.

@brandonsturgeon brandonsturgeon added the enhancement New feature or request label Apr 4, 2024
@brandonsturgeon brandonsturgeon self-assigned this Apr 4, 2024
@brandonsturgeon brandonsturgeon merged commit 1369ded into main Apr 21, 2024
1 check passed
@brandonsturgeon brandonsturgeon deleted the chore/refactor-group-timeout branch April 21, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant