From 1f11e78000fcf4ab34530670506f38d755acefca Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Tue, 19 Mar 2019 17:58:47 +0100 Subject: [PATCH] tiny modification to the LauncheSpec test --- test/unit/Cardano/LauncherSpec.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/Cardano/LauncherSpec.hs b/test/unit/Cardano/LauncherSpec.hs index 37b833aa23e..63c0f5c2302 100644 --- a/test/unit/Cardano/LauncherSpec.hs +++ b/test/unit/Cardano/LauncherSpec.hs @@ -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