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(Slider): fix flaky test #5594

Merged
merged 3 commits into from
Mar 11, 2020

Conversation

asudoh
Copy link
Contributor

@asudoh asudoh commented Mar 11, 2020

This change fixes a flaky test in one for React <Slider>, which was caused by an assumption that a timer fires in a certain timing. Fixed by not running timer in test.

Changelog

Changed

  • Change in <Slider> test to mock lodash.throttle

This change fixes a flaky test in one for React `<Slider>`, which was
caused by an assumption that a timer fires in a certain timing. Fixed
by not running timer in test.
@asudoh asudoh requested review from emyarod and tw15egan March 11, 2020 07:51
@asudoh asudoh requested a review from a team as a code owner March 11, 2020 07:51
@netlify
Copy link

netlify bot commented Mar 11, 2020

Deploy preview for carbon-components-react ready!

Built with commit 262c712

https://deploy-preview-5594--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Mar 11, 2020

Deploy preview for carbon-elements ready!

Built with commit 262c712

https://deploy-preview-5594--carbon-elements.netlify.com

@asudoh asudoh merged commit 0b223b7 into carbon-design-system:master Mar 11, 2020
@asudoh asudoh deleted the mock-throttle-slider branch March 11, 2020 23:04
aledavila pushed a commit that referenced this pull request Mar 18, 2020
This change fixes a flaky test in one for React `<Slider>`, which was
caused by an assumption that a timer fires in a certain timing. Fixed
by not running timer in test.
This was referenced Mar 18, 2020
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.

4 participants