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

Set the test timeout to 15 seconds #1363

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Dec 11, 2024

The test default timeout is 5 seconds. The beforeAll step has a separate timeout.

This test was timing out originally at 9 seconds, so that indicates the beforeAll step takes around 4 seconds.

Experimenting showed the test completes around 12-15 seconds, of which 4 seconds are the beforeAll step, so the test itself takes 8-11 seconds. But I forgot we have auto-merge enabled, so my experimental timeout of 30 seconds got merged when I wasn't planning to...

A 15 second timeout should be all we need.

The test default timeout is 5 seconds. The `beforeAll` step has a separate timeout.

This test was timing out originally at 9 seconds, so that indicates the `beforeAll` step takes around 4 seconds.

Experimenting showed the test completes around 12-15 seconds, of which 4 seconds are the `beforeAll` step, so the
test itself takes 8-11 seconds.

So a 15 second timeout should be all we need.
@Copilot Copilot bot review requested due to automatic review settings December 11, 2024 22:29
@jeffwidman jeffwidman requested a review from a team as a code owner December 11, 2024 22:29

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again, by re-requesting a review.

@jeffwidman jeffwidman enabled auto-merge (squash) December 11, 2024 22:36
@jeffwidman jeffwidman merged commit 08cb9b1 into main Dec 11, 2024
9 checks passed
@jeffwidman jeffwidman deleted the set-test-timeout-properly branch December 11, 2024 22:37
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.

3 participants