Skip to content

Commit

Permalink
yucky little force
Browse files Browse the repository at this point in the history
  • Loading branch information
fraser-iohk committed May 9, 2024
1 parent 73d5282 commit 07f5204
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import Test.Util.Orphans.IOLike ()
import Test.Util.Range
import Test.Util.TestEnv (adjustQuickCheckTests)
import Test.Util.Time
import Control.DeepSeq

tests :: TestTree
tests = testGroup "WallClock" [
Expand Down Expand Up @@ -339,7 +340,7 @@ testOverrideDelay systemStart slotLength maxClockRewind numSlots = do
withWatcher
"testOverrideDelay"
( knownSlotWatcher btime $ \slotNo -> do
atomically $ modifyTVar slotsVar (slotNo :)
atomically $ modifyTVar slotsVar $ force . (slotNo :)
) $ do
-- Wait to collect the required number of slots
atomically $ do
Expand Down

0 comments on commit 07f5204

Please sign in to comment.