We are currently working on an issue where we use specs2 in scala togeather with mongodb/reactivemongo + Play!.
When we run the tests that write to mongodb the first operation runs fine the all subsequent tests/writes fail due to a timeout when to mongodb.
We found what seems to be an already documented bug on the reactive mongo site here: https://github.com/ReactiveMongo/Play-ReactiveMongo/issues/32
Does anyone know a workaround for this issue?
We have already tried:
- Forcing the tests to be run in sequence
- Each test running in its own fake application
- Running all tests in the same fake application
- Defining the collection as a def (as suggested in the issue 32 above)
Any help is greatly appreciated!