Skip to content

Commit fe8f500

Browse files
Fix incorrect status being returned (#742)
1 parent 89aec85 commit fe8f500

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

test.clj

+8-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@
3939
src-copy (str src ".bak")]
4040
(shell/sh "cp" src src-copy)
4141
(try
42-
((shell/sh "cp" example src)
43-
(= "pass" ((json/parse-string
44-
(:out (shell/sh (str test-runner-dir "test-runner.clj")
45-
slug
46-
dir
47-
dir)))
48-
"status")))
42+
(do
43+
(shell/sh "cp" example src)
44+
(= "pass" ((json/parse-string
45+
(:out (shell/sh (str test-runner-dir "test-runner.clj")
46+
slug
47+
dir
48+
dir)))
49+
"status")))
4950
(finally (shell/sh "mv" src-copy src)))))
5051

5152
(defn test-exercises! []

0 commit comments

Comments
 (0)