lazy test prints out identical error messages
Closed this issue · 2 comments
Deleted user commented
When there is an error in my tests lazy test prints out identical error messages:
Reloading yobistore.core, yobistore.server-test, yobistore.core-test
FAIL at (core_test.clj:12)
Actual result did not agree with the checking function.
Actual result: java.lang.ClassCastException: java.lang.Long cannot be cast to datomic.Connection
datomic.api$transact.invoke(api.clj:54)
yobistore.core$add_item.invoke(core.clj:14)
yobistore.core_test$eval6576$fn__6577$fn__6578$fn__6579.invoke(core_test.clj:11)
yobistore.core_test$eval6576$fn__6577$fn__6578.invoke(core_test.clj:11)
yobistore.core_test$eval6576$fn__6577.invoke(core_test.clj:11)
yobistore.core_test$eval6576.invoke(core_test.clj:11)
lazytest.reload$reload.doInvoke(reload.clj:61)
lazytest.watch$reload_and_run.invoke(watch.clj:22)
lazytest.watch$reloading_runner$fn__288.invoke(watch.clj:35)
Checking function: (just {:t number?})
The checker said this about the reason:
You can't compare #<CapturedThrowable midje.error_handling.exceptions.CapturedThrowable@1e9a7dae> (class midje.error_handling.exceptions.CapturedThrowable) to {:t #<core$number_QMARK_ clojure.core$number_QMARK_@1b65faeb>} (class clojure.lang.PersistentArrayMap).
FAIL at (core_test.clj:12)
Actual result did not agree with the checking function.
Actual result: java.lang.ClassCastException: java.lang.Long cannot be cast to datomic.Connection
datomic.api$transact.invoke(api.clj:54)
yobistore.core$add_item.invoke(core.clj:14)
yobistore.core_test$eval6629$fn__6630$fn__6631$fn__6632.invoke(core_test.clj:11)
yobistore.core_test$eval6629$fn__6630$fn__6631.invoke(core_test.clj:11)
yobistore.core_test$eval6629$fn__6630.invoke(core_test.clj:11)
yobistore.core_test$eval6629.invoke(core_test.clj:11)
lazytest.watch$reload_and_run.invoke(watch.clj:23)
lazytest.watch$reloading_runner$fn__288.invoke(watch.clj:35)
Checking function: (just {:t number?})
The checker said this about the reason:
You can't compare #<CapturedThrowable midje.error_handling.exceptions.CapturedThrowable@5106e95a> (class midje.error_handling.exceptions.CapturedThrowable) to {:t #<core$number_QMARK_ clojure.core$number_QMARK_@1b65faeb>} (class clojure.lang.PersistentArrayMap).
FAILURE: 1 fact was not confirmed.
Any idea what the issue is?
AlexBaranosky commented
A good bug report shows the exact steps to reproduce. This is confusing me, so hard to help you.
marick commented
I suspect this has long since been fixed.