Skip to content

Commit 5b3772c

Browse files
committed
Revert change to nothingHappensFor in behavior spec
1 parent 128f921 commit 5b3772c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hydra-node/test/Hydra/BehaviorSpec.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ spec = parallel $ do
125125
send n1 Close
126126
waitForNext n1 >>= assertHeadIsClosed
127127
waitUntil [n1] $ ReadyToFanout testHeadId
128-
nothingHappensFor n1 1000000
128+
nothingHappensFor n1 100000
129129

130130
it "does finalize head after contestation period upon command" $
131131
shouldRunInSim $ do
@@ -1229,12 +1229,12 @@ newDeadlineFarEnoughFromNow =
12291229
addUTCTime (3 * DP.toNominalDiffTime defaultDepositPeriod) <$> getCurrentTime
12301230

12311231
nothingHappensFor ::
1232-
(MonadTimer m, MonadThrow m, IsChainState tx, MonadAsync m) =>
1232+
(MonadTimer m, MonadThrow m, IsChainState tx) =>
12331233
TestHydraClient tx m ->
12341234
NominalDiffTime ->
12351235
m ()
1236-
nothingHappensFor TestHydraClient{waitForNext, waitForNextMessage} secs =
1237-
timeout (realToFrac secs) (race waitForNext waitForNextMessage) >>= (`shouldBe` Nothing)
1236+
nothingHappensFor node secs =
1237+
timeout (realToFrac secs) (waitForNext node) >>= (`shouldBe` Nothing)
12381238

12391239
withHydraNode ::
12401240
forall s a.

0 commit comments

Comments
 (0)