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

test(init): Fix flaky init test which used snapshots w/ concurrent #5700

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

BYK
Copy link
Member

@BYK BYK commented Apr 18, 2018

Summary

Snapshots should not be used with test.concurrent. This PR fixes a
flaky test which was doing exactly this.

Test plan

CI should pass.

**Summary**

Snapshots should not be used with `test.concurrent`. This PR fixes a
flaky test which was doing exactly this.

**Test plan**

CI should pass.
Copy link
Member

@imsnif imsnif left a comment

Choose a reason for hiding this comment

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

@BYK - LGTM. Just a thought though, what about removing the concurrent from the above test as well for consistency?

test.concurrent('init should create package.json on current cwd', (): Promise<void> => {

Locally this works for me, wanted your input before pushing.

EDIT: scratch that. I didn't notice that above test did not use snapshots. My bad. :)

@BYK BYK merged commit 9e97f50 into master Apr 19, 2018
@BYK BYK deleted the fix-flaky-tests branch April 19, 2018 09:05
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.

2 participants