Skip to content

Commit

Permalink
Update to Clojure 1.11.1 (#1039)
Browse files Browse the repository at this point in the history
* Update Clojure to 1.11.1

* Update test assertion for "Tap already defined" error

Recent versions of Clojure changed to throw a CompilerException
if macroexpansion fails. The RuntimeException thrown by riemann.test/tap
is now the cause.
  • Loading branch information
brandonvin committed Dec 8, 2023
1 parent 72ada03 commit 40de2b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:maintainer {:email "[email protected]"}
:dependencies [
[org.clojure/algo.generic "0.1.2"]
[org.clojure/clojure "1.9.0"]
[org.clojure/clojure "1.11.1"]
[org.clojure/math.numeric-tower "0.0.4"]
[org.clojure/tools.logging "1.2.1"]
[org.clojure/tools.nrepl "0.2.13"]
Expand Down
2 changes: 1 addition & 1 deletion test/riemann/test_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(tap :bar prn)
(tap :foo nil))))
(catch RuntimeException e
(.getMessage e)))]
(.getMessage (ex-cause e))))]
(is (re-find #"Tap :foo \(.+?:\) already defined at :" err))))

(deftest tap-captures-events
Expand Down

0 comments on commit 40de2b6

Please sign in to comment.