question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flaky: "msw-api/context/delay.test.ts" integration test

See original GitHub issue

Scope

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:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
JacobMGEvanscommented, Jul 27, 2020

https://kentcdodds.com/discord

@cowboyd This should work. The MSW is in one of the channels 😄

2reactions
kettanaitocommented, Jul 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found