Skip to content

Commit

Permalink
Tidyup
Browse files Browse the repository at this point in the history
  • Loading branch information
noonio authored and silky committed Jan 13, 2025
1 parent e315967 commit 3041144
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hydra-cluster/src/Hydra/Cluster/Scenarios.hs
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,11 @@ oneOfNNodesCanDropForAWhile tracer workDir cardanoNode hydraScriptsTxId = do

-- Carol reconnects, and then the snapshot can be confirmed
withHydraNode hydraTracer carolChainConfig workDir 3 carolSk [aliceVk, bobVk] [1, 2, 3] $ \n3 -> do
-- And then the Snapshot is confirmed
--
-- Note: We can't use `waitForAlMatch` here as it expects them to
-- emit the exact same datatype; but Carol will be behind in sequence
-- numbers as she was offline.
--
flip mapConcurrently_ [n1, n2, n3] $ \n ->
waitMatch (300 * blockTime) n $ \v -> do
waitMatch (200 * blockTime) n $ \v -> do
guard $ v ^? key "tag" == Just "SnapshotConfirmed"
guard $ v ^? key "snapshot" . key "number" == Just (toJSON (2 :: Integer))
where
Expand Down

0 comments on commit 3041144

Please sign in to comment.