Skip to content

Commit

Permalink
Test that exit-code returns an exit code if a timeout doesn't occur.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Jul 30, 2012
1 parent 6ada281 commit 5f7f8f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/conch/core_test.clj
Expand Up @@ -53,4 +53,6 @@

(deftest exit-code-timeout-test
(testing "Returns :timeout if a timeout and destroy was necessary."
(is (= :timeout (c/exit-code (c/proc "cat") 500)))))
(is (= :timeout (c/exit-code (c/proc "cat") 500))))
(testing "Exit code is returned if the timeout doesn't get hit."
(is (= 0 (c/exit-code (c/proc "ls") 10000)))))

0 comments on commit 5f7f8f1

Please sign in to comment.