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

chore(v2): fix async tests #2906

Merged
merged 1 commit into from
Jun 8, 2020
Merged

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jun 8, 2020

For async tests, doing expectation in catch code is bad because if the promise resolves instead of rejecting, the test still pass, while it's expected to fail.

@slorber slorber requested a review from yangshun as a code owner June 8, 2020 17:05
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 8, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit effe7de

https://deploy-preview-2906--docusaurus-2.netlify.app

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

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

Not strictly v2 but this is fine :)

Thanks for fixing our flaky test!

@yangshun yangshun merged commit 08359dd into facebook:master Jun 8, 2020
@slorber slorber added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants