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 authored and Jared Corduan committed May 30, 2023
1 parent a6dc357 commit 0fcf262
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 0fcf262

Please sign in to comment.