diff --git a/test/unit/Cardano/Wallet/BlockSyncerSpec.hs b/test/unit/Cardano/Wallet/BlockSyncerSpec.hs index 8ad677233d4..45010484252 100644 --- a/test/unit/Cardano/Wallet/BlockSyncerSpec.hs +++ b/test/unit/Cardano/Wallet/BlockSyncerSpec.hs @@ -153,3 +153,10 @@ mkReader ref m k = do modifyMVar_ ref $ return . (v :) Nothing -> return () + +mkReader' + :: MVar [a] + -> a + -> IO () +mkReader' ref x = do + modifyMVar_ ref $ return . (x :)