-
Notifications
You must be signed in to change notification settings - Fork 585
fix: increase cli test timeout #952
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
Conversation
fd20149
to
f739336
Compare
package.json
Outdated
@@ -29,7 +29,7 @@ | |||
"prepare": "npm run build", | |||
"test:common": "npm run check-tests && npm run build && npm run lint && node --require ts-node/register src/cli test --org=snyk", | |||
"test:acceptance": "tap test/acceptance/**/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register", | |||
"test:system": "tap test/system/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register", | |||
"test:system": "tap test/system/*.test.* -Rspec --node-arg=-r --node-arg=ts-node/register", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty sure leaving this out means a default timeout of 60 seconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've tried all sorts (up to 600ms), starting to think timeout is not the issue
d888822
to
85e11a2
Compare
ecd5d5e
to
8b669a3
Compare
Open authenticate window immediately.
e7230ec
to
c6f0b28
Compare
OK after lots of experimentation, the real issue was the amount of time we take to open the browser window. Reduced this from 2 seconds to immediate. Allows tests to more consistently pass and not timeout. The timeout was cause because the test teardown brought down the local server before all async tests had returned. |
🎉 This PR is included in version 1.277.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
Increase tap timeout from 300 to 400 due to increased test count we're
regularly hitting this timeout.
How should this be manually tested?
npm test:acceptance