Skip to content

Commit

Permalink
Fix incorrect status being returned (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Jan 13, 2025
1 parent 89aec85 commit fe8f500
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@
src-copy (str src ".bak")]
(shell/sh "cp" src src-copy)
(try
((shell/sh "cp" example src)
(= "pass" ((json/parse-string
(:out (shell/sh (str test-runner-dir "test-runner.clj")
slug
dir
dir)))
"status")))
(do
(shell/sh "cp" example src)
(= "pass" ((json/parse-string
(:out (shell/sh (str test-runner-dir "test-runner.clj")
slug
dir
dir)))
"status")))
(finally (shell/sh "mv" src-copy src)))))

(defn test-exercises! []
Expand Down

0 comments on commit fe8f500

Please sign in to comment.