Infinite loop when trying to replay failure
See original GitHub issue🐛 Bug Report
I’m trying to reproduce a failure with a specific seed
and path
, but the unit test just enters an infinite loop. The most intriguing thing is that jest doesn’t timeout 🤔
Apparently, if I change the path to 2:0
, it doesn’t enter an infinite loop. However, a wrong path shouldn’t prevent jest from timing out.
To Reproduce
import fc from 'fast-check';
describe('suite', () => {
it('unit test', () => {
const property = fc.property(fc.nat(), num => {
console.log(num);
console.log('******');
});
fc.assert(property, { seed: -1386863032, path: '2', endOnFailure: true });
});
});
Expected behavior
It should only run the property numRuns
times and it shouldn’t prevent jest from timing out.
Your environment
Packages / Softwares | Version(s) |
---|---|
fast-check | 1.16.0 |
node | 10.14.1 |
TypeScript* | 3.4.5 |
*Only for TypeScript’s users
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Infinite loop detected during replay, aborting · Issue #16 ...
All my replays are giving me this error. Even short recordings void of anything meaningful. I am recording by launching the guest and...
Read more >Replay error (an infinite loop) - YouTube
Replay error (an infinite loop ). 3 views 2 weeks ago. Football Fan. Football Fan. 12 subscribers. Subscribe. 0. I like this. I...
Read more >Python-based discord bot reply errors (infinite loop)
I attempted to use the boolean variable new_message as the conditional statement for the while loop. This variable is set to false once...
Read more >Infinite loop of "Failure to configure Windows updates" in
"Failure configuring Windows updates. Reverting changes. Do not turn off your computer" error when you try to install Windows updates
Read more >What is infinite loop (endless loop)? | Definition from TechTarget
In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.
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
@brapifra Version 1.16.1 is available on NPM, please let me know if it does not fix the issue on your side
I’ll release a version containing the fix shortly