Skip to content

Commit

Permalink
Fix spin loop in effectful hedgehog tests
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jan 15, 2025
1 parent 1e70cb3 commit ef39ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/hedgehog/Effectful/Zoo/Hedgehog/Effect/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ property f = do
Nothing -> do
mResult <- CC.tryTakeTMVar tvResult
case mResult of
Nothing -> pure Nothing
Just a -> pure $ Just $ Right a
Nothing -> retry
Just action -> pure $ Just $ Left action

case mActionOrResult of
Expand Down Expand Up @@ -132,8 +132,8 @@ unit f = do
Nothing -> do
mResult <- CC.tryTakeTMVar tvResult
case mResult of
Nothing -> pure Nothing
Just a -> pure $ Just $ Right a
Nothing -> retry
Just action -> pure $ Just $ Left action

case mActionOrResult of
Expand Down

0 comments on commit ef39ff0

Please sign in to comment.