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(Portal): fix tests with timeouts #2538

Merged
merged 1 commit into from
Feb 22, 2018
Merged

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Feb 19, 2018

TransitionablePortal tests are intermittently failing due to unpredictable animation durations and set timeout times.

This PR adds a new util assertWithTimeout which repeatedly makes the assertion until it passes or until 2s have passed. In the event 2s is reached without the assertion passing, the error will be thrown. This allows us to execute tests as fast as possible but also account for unknown execution times.

@codecov-io
Copy link

codecov-io commented Feb 19, 2018

Codecov Report

Merging #2538 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2538   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files         160      160           
  Lines        2744     2744           
=======================================
  Hits         2737     2737           
  Misses          7        7

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9b92da...54a1a98. Read the comment docs.

@layershifter
Copy link
Member

Merged as it was marked as ready for merge, @levithomason 👍

@levithomason
Copy link
Member Author

Released in [email protected].

Brantron pushed a commit to Brantron/Semantic-UI-React that referenced this pull request Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants