Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Set the test timeout to 15 seconds #1362

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

Closed
wants to merge 1 commit into from
Closed

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.

So a 15 second timeout should be all we need.

The reason it started timing out was we switched the proxy image to using upx because that resulted in halving the image size. However, it is effectively a self-extracting archive, so it added a few extra seconds to the container startup time.

@Copilot Copilot AI review requested due to automatic review settings December 11, 2024 22:20
@jeffwidman jeffwidman requested a review from a team as a code owner December 11, 2024 22:20
Copy link
Contributor

@Copilot Copilot AI left a comment

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 changed the title Set the test timeout to 10 seconds Set the test timeout to 15 seconds 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.

So a 15 second timeout should be all we need.
@jeffwidman jeffwidman closed this Dec 11, 2024
@jeffwidman jeffwidman force-pushed the set-test-timeout-properly branch from a984f2a to f778c59 Compare December 11, 2024 22:25
@jeffwidman
Copy link
Member Author

jeffwidman commented Dec 11, 2024

I didn't intend to close this... I think the problem was in the codespace I did a force-push before a fetch, not realizing how codespaces haven't pulled full history in order to optimize... anyway:

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.

1 participant