Skip to content

Commit 713aca3

Browse files
committed
ignore synced status report in model spec
1 parent 00d95fa commit 713aca3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

hydra-node/test/Hydra/BehaviorSpec.hs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,15 +1003,15 @@ waitUntilMatch nodes predicate = do
10031003
, unlines (show <$> msgs)
10041004
]
10051005
where
1006-
go seenOutputs (nid, n) = do
1007-
out <-
1008-
raceLabelled ("wait-for-next-msg", waitForNextMessage n) ("wait-for-next", waitForNext n) >>= \case
1009-
Left msg -> failure $ "waitUntilMatch received unexpected client message: " <> show msg
1010-
Right out -> pure out
1011-
atomically (modifyTVar' seenOutputs ((nid, out) :))
1012-
case predicate out of
1013-
Just x -> pure x
1014-
Nothing -> go seenOutputs (nid, n)
1006+
go seenOutputs (nid, n) =
1007+
raceLabelled ("wait-for-next-msg", waitForNextMessage n) ("wait-for-next", waitForNext n) >>= \case
1008+
Left SyncedStatusReport{} -> go seenOutputs (nid, n)
1009+
Left msg -> failure $ "waitUntilMatch received unexpected client message: " <> show msg
1010+
Right out -> do
1011+
atomically (modifyTVar' seenOutputs ((nid, out) :))
1012+
case predicate out of
1013+
Just x -> pure x
1014+
Nothing -> go seenOutputs (nid, n)
10151015

10161016
oneMonth = 3600 * 24 * 30
10171017

0 commit comments

Comments
 (0)