Skip to content

Commit

Permalink
Expect 'ExitFailure 1' on triggering of --shutdown-on-slot-synced con…
Browse files Browse the repository at this point in the history
…dition
  • Loading branch information
newhoggy committed May 30, 2023
1 parent e4c22ae commit 7c044d0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -15,7 +15,7 @@ import Data.Aeson.Types
import Data.ByteString.Lazy.Char8 as LBS (pack)
import Data.Either (isRight)
import Data.Maybe
import GHC.IO.Exception (ExitCode (ExitSuccess))
import GHC.IO.Exception (ExitCode (..))
import GHC.Stack (callStack)
import qualified System.Directory as IO

Expand Down Expand Up @@ -57,7 +57,7 @@ hprop_shutdownOnSlotSynced = H.integrationRetryWorkspace 2 "shutdown-on-slot-syn
when (isRight mExitCodeRunning) $ do
H.cat (nodeStdout node)
H.cat (nodeStderr node)
mExitCodeRunning === Right ExitSuccess
mExitCodeRunning === Right (ExitFailure 1)

logs <- H.readFile (nodeStdout node)
slotTip <- case mapMaybe parseMsg $ reverse $ lines logs of
Expand Down

0 comments on commit 7c044d0

Please sign in to comment.