Skip to content

Commit

Permalink
Fix shutdown bug in 1.0.6
Browse files Browse the repository at this point in the history
Move disable-run-on-shutdown to pod initialization so whenever we
require Expectations we guarantee turning that off!
  • Loading branch information
seancorfield committed Mar 18, 2016
1 parent 83b0e57 commit 2ac3f96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.boot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(set-env!
:resource-paths #{"src"})

(def version "1.0.6")
(def version "1.0.7")

(task-options!
pom {:project 'seancorfield/boot-expectations
Expand Down
5 changes: 3 additions & 2 deletions src/seancorfield/boot_expectations.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
[clojure.tools.namespace.find :as f]
[expectations :as e]]
requires)]
(pod/require-in fresh-pod r)))
(pod/require-in fresh-pod r))
(pod/with-eval-in fresh-pod
(e/disable-run-on-shutdown)))

(defn replace-clojure-version
"Given a desired Clojure version and an artifact/version pair,
Expand Down Expand Up @@ -50,7 +52,6 @@
(let [dirs (mapv (memfn getPath) (core/input-dirs fs))]
(let [{:keys [fail error] :as summary}
(pod/with-eval-in (pods)
(e/disable-run-on-shutdown)
(doseq [n (distinct (mapcat #(f/find-namespaces-in-dir (io/file %)) ~dirs))
:when (and (re-find ~include (name n))
(not (re-find ~exclude (name n))))]
Expand Down

0 comments on commit 2ac3f96

Please sign in to comment.