Closed rmangi closed 4 years ago
Sorry, meant to merge this onto my master first.
great, thanks. did you test it with the new Clojure and nippy versions?
(I mean cbass
core functionality, not just the mocks)
yep, i deployed it locally and it seems to work fine.
great. thanks for the changes and for confirming.
Refactored so as not to try to connect to zookeeper whenever test were run.
So this was actually very interesting. I was trying to run cloverage across our repo (about 20 clojure projects) and a bunch were failing with a strange exception. I tracked it down to all of the projects that imported cbass. Turns out the core test, which is really in integration test, connection to zookeeper was being executed when cloverage scanned the imported code. The weird thing was that it was complaining about nippy, perhaps it was just the import order.
This just mocks out the connection and the other methods being called by the test to avoid the problem.
I also bumped the version of nippy and clojure while I was in there.
Thanks!