Skip to content

Commit

Permalink
Silence the ns-cache errors when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Malabarba committed Sep 22, 2015
1 parent 12c4d54 commit dff426a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/clj/cider/nrepl/middleware/track_state_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
[clojure.tools.nrepl.transport :as t])
(:import clojure.tools.nrepl.transport.Transport))

;;; This is to prevent the agent from flooding test reports with
;;; irrelevant exceptions.
(set-error-handler! s/ns-cache (constantly nil))
(set-error-mode! s/ns-cache :continue)

(def ^:const msg {:session :dummy})

(deftest make-transport
Expand Down

0 comments on commit dff426a

Please sign in to comment.