-
Notifications
You must be signed in to change notification settings - Fork 365
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
test: add CLI timeout #1727
test: add CLI timeout #1727
Conversation
tests/utils/call-cli.js
Outdated
const callCli = async function (args, execOptions) { | ||
const { stdout } = await execa(cliPath, args, { windowsHide: true, windowsVerbatimArguments: true, ...execOptions }) | ||
const { stdout } = await execa(cliPath, args, { | ||
windowsHide: true, |
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.
This is already the default value.
Note: windowsHide
is a tricky option which has pros and cons. We probably want to keep the default value here and let Execa decides what the best value for it is.
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.
Removed in 130ee48
tests/utils/call-cli.js
Outdated
const { stdout } = await execa(cliPath, args, { windowsHide: true, windowsVerbatimArguments: true, ...execOptions }) | ||
const { stdout } = await execa(cliPath, args, { | ||
windowsHide: true, | ||
windowsVerbatimArguments: true, |
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.
Is this needed? Would the default behavior might be better at handling Windows?
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.
Don't think it is. Removed in 130ee48
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.
Looks good.
I added two comments which are about options already present in the current code, not changed by this PR.
This PR adds a timeout of 30 seconds for CLI invocations in our tests.