Open favila opened 1 year ago
I added #11 to address this.
For any future readers: A fork with this patch is available on clojars with coordinate [org.clojars.favila/datomock "0.2.2-favila1"]
. We are already using it in our (large) datomock-using test suite with 1.0.6527 without any issues.
Thanks @favila! Would love it if a new release could be made from this repo as well, being the official one. Thanks in advance! :)
@favila thanks a ton - @vvvvalvalval any chance of a release to fix this?
@vvvvalvalval could you be so very kind and release this fix? It blocks Fulcro from abandoning the old datomic-free for the new, truly free stuff. 🙏
Datomic 1.0.6527 added additional methods to the Connection interface related to io-stats to support the new arities of transact and transact async. The
datomic.api/transact
andtransact-async
wrappers seem to always use this new method, even if called with only one argument.This means datomock fails with 1.0.6527. Exceptions look like this:
A quick fix is to add the additional method signatures but ignore the io-stat argument: