specs-embedmongo does not work if you have multiple examples in the same specification
Gottexbrokerssa opened this issue · comments
IT is probably due to a required tmieout between one example and the following one so to give the time to mongo to stop and start again?
Hi !
Can you link an code example here please?
Thanks !
If I take your sample and I add another example it works, but if in my case it fails. If I comment one of the two examples everything works fine. Here is a gist of my code:
https://gist.github.com/Gottexbrokerssa/5459062
for some reason this fails:
can't say something
com.mongodb.MongoException$Network: can't say something
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:194)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:155)
at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:349)
at com.mongodb.casbah.MongoCollectionBase$class.update(MongoCollection.scala:584)
at com.mongodb.casbah.MongoCollection.update(MongoCollection.scala:847)
at com.gottex.gottware.historicaldata.storage.MongoDbHistoricalSecuritiesDataStorage.storeRecord(MongoDbHistoricalSecuritiesDataStorage.scala:25)
"Sequential" seems to make the connection going crazy.
I will continue to investigate.
sequential is now supported after the Pull Request #10 thanks to @Jarlakxen