File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Node Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import qualified Testnet.Property.Utils as H
3939
4040import Cardano.Testnet
4141import Data.Either (isRight )
42- import GHC.IO.Exception (ExitCode (ExitSuccess , ExitFailure ))
42+ import GHC.IO.Exception (ExitCode (ExitFailure , ExitSuccess ))
4343import GHC.Stack (callStack )
4444import System.Process (interruptProcessGroupOf )
4545import Testnet.Defaults
@@ -233,7 +233,9 @@ hprop_shutdownOnSigint = H.integrationRetryWorkspace 2 "shutdown-on-sigint" $ \t
233233 when (isRight mExitCodeRunning) $ do
234234 H. cat (nodeStdout node)
235235 H. cat (nodeStderr node)
236- mExitCodeRunning === Right (ExitFailure 1 )
236+ case mExitCodeRunning of
237+ Right (ExitFailure _) -> H. success
238+ other -> H. failMessage callStack $ " Unexpected exit status for the testnet process: " <> show other
237239
238240 logs <- H. readFile (nodeStdout node)
239241 case mapMaybe parseMsg $ reverse $ lines logs of
You can’t perform that action at this time.
0 commit comments