Flaky: "msw-api/context/delay.test.ts" integration test
See original GitHub issueScope
Current behavior
Current deviation value (150
ms) is not sufficient to cover the random response time generated by ctx.delay()
.
Expected behavior
Integration test for implicit response delay passes. I recommend to setup a simple Shell script that would run that test numerous times (i.e. 100) and ensure all the runs pass.
Suggested solution
- Increase the deviation amount to
200
ms.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
"rest-api/redirect.test.ts" integration test · Issue #301 · mswjs/msw
Flaky : "rest-api/redirect.test.ts" integration test #301 ... I ran this test quite possibly about 1,000 times and was unable to make it fail ......
Read more >How to Fix Flaky Tests - Semaphore CI
Randomly failing tests are the hardest to debug. Here's a framework you can use to fix them and keep your test suite healthy....
Read more >Flaky tests - GitLab Docs
Flaky tests. What's a flaky test? It's a test that sometimes fails, but if you retry it enough times, it passes, eventually.
Read more >What are Flaky Tests? | TeamCity CI/CD Guide - JetBrains
Flaky tests are tests that return new results, despite there being no changes to code. Find out why flaky tests matter and how...
Read more >Flaky Tests: Getting Rid Of A Living Nightmare In Testing
The Science Of Flaky Tests # A flaky test is one that fails to produce the same result each time the same analysis...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://kentcdodds.com/discord
@cowboyd This should work. The MSW is in one of the channels 😄
Hey, @JacobMGEvans! This is that flaky test issue we’ve been discussing on Discord. Please, feel free to take a look into it, if you have some spare time. I’d be thankful.