Skip to content

Commit b29265c

Browse files
plexusbbatsov
authored andcommitted
Clojure 1.10 reflector related changes
Because of the more complex Reflector in Clojure 1.10, there are extra stacktraces of the `invoke` and `invokeStatic` methods. These do not have an associated file. Update the stacktrace-test accordingly.
1 parent 9dbf1aa commit b29265c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/clj/cider/nrepl/middleware/stacktrace_test.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
#(.endsWith (:file-url %) "!/clojure/core.clj")
5252
(filter #(= "clojure.core" (:ns %))
5353
frames1)))
54-
(is (every?
55-
#(.startsWith (:file-url %) "file:/")
56-
(filter #(some-> % :ns (.contains "cider"))
57-
frames1))))
54+
(is (->> (filter #(some-> % :ns (.contains "cider")) frames1)
55+
(remove (comp #{"invoke" "invokeStatic"} :method)) ;; these don't have a file-url
56+
(every?
57+
#(.startsWith (:file-url %) "file:/")))))
5858
(testing "Clojure ns, fn, and var"
5959
;; All Clojure frames should have non-nil :ns :fn and :var attributes.
6060
(is (every? #(every? identity ((juxt :ns :fn :var) %))

0 commit comments

Comments
 (0)