Skip to content

Commit

Permalink
tiny modification to the LauncheSpec test
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Mar 19, 2019
1 parent 65faeb6 commit 1f11e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/Cardano/LauncherSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ spec = do

it "One process exits with 14, others are cancelled" $ do
let commands =
[ Command "./test/data/Launcher/once.sh" ["14"] (pure ())
, Command "./test/data/Launcher/forever.sh" [] (pure ())
[ Command "./test/data/Launcher/forever.sh" [] (pure ())
, Command "./test/data/Launcher/once.sh" ["14"] (pure ())
]
(ProcessHasExited name code) <- launch commands
name `shouldBe` cmdName (commands !! 0)
name `shouldBe` cmdName (commands !! 1)
code `shouldBe` (ExitFailure 14)

it "Process executes a command before they start" $ do
Expand Down

0 comments on commit 1f11e78

Please sign in to comment.