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.

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

github_iconTop GitHub Comments

1reaction
dubzzzcommented, Aug 20, 2019

@brapifra Version 1.16.1 is available on NPM, please let me know if it does not fix the issue on your side

1reaction
dubzzzcommented, Aug 20, 2019

I’ll release a version containing the fix shortly

Read more comments on GitHub >

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

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