Skip to content

Commit

Permalink
Update test assertion for "Tap already defined" error
Browse files Browse the repository at this point in the history
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 6, 2023
1 parent 5f6b707 commit 25235d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/riemann/test_test.clj
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 25235d3

Please sign in to comment.