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 suite hangs during shrinking? #426

Open
saurabhnanda opened this issue Jul 1, 2021 · 1 comment
Open

Test suite hangs during shrinking? #426

saurabhnanda opened this issue Jul 1, 2021 · 1 comment

Comments

@saurabhnanda
Copy link

saurabhnanda commented Jul 1, 2021

Are there any known cases where property tests written in the following structure would hang during shrinking:

property $ do
  x1 <- forAll $ ...
  x2 <- forAll $ ...
  test $ do
    res <- liftIO $ someAction x1 x2
    res === value

My test suite hangs quite often during the shrinking phase and I'm trying to get to the bottom of it, but haven't been able to come-up with a minimal example to reproduce this.

@ocharles
Copy link
Contributor

ocharles commented Jul 1, 2021

We're almost certainly going to have to have more to go on than that. Are you certain it's actually shrinking, and not just constantly rerunning your test but not failing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants