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

Fix randomly failing CI tests #231

Merged
merged 3 commits into from May 10, 2019
Merged

Fix randomly failing CI tests #231

merged 3 commits into from May 10, 2019

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented May 10, 2019

The tests for the timeout feature are randomly failing in CI.

This is due to them being time-sensitive, while tests in a CI environment can take a long time to complete.

Also the tests are checking assertions not related to the timeout feature, e.g. that execa without the timeout option returns the right exit code or error message. I removed those as they are checked by other tests, and those tests should only check features related to timeout.

Finally I have simplified few tests that use setTimeout() before calling childProcess.kill(), which is not needed.

@ehmicky ehmicky requested a review from sindresorhus May 10, 2019 15:12
@sindresorhus sindresorhus merged commit 4fb924c into master May 10, 2019
@sindresorhus sindresorhus deleted the feature/timeout-tests branch May 10, 2019 15:36
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.

None yet

2 participants