mcollina / mqemitter-mongodb

MongoDB based MQEmitter
MIT License
18 stars 10 forks source link

Tests fails on Mac 50% of the time #27

Closed mcollina closed 4 years ago

mcollina commented 4 years ago

I'm not sure why, but the first test of abstractTests.js fails.

mcollina commented 4 years ago

cc @robertsLando

robertsLando commented 4 years ago

@mcollina I'm not able to reproduce this on my laptop, could you give me more info about the fail?

Could you test also the previous version to see if test fails in that too?

mcollina commented 4 years ago

They all fail for some reason. Are you using mongodb inside docker as defined in package.json?

robertsLando commented 4 years ago

Nope, I'm using mongo db installed on Ubuntu 18.04. I just add a command on mongodb to reduce the ttl checks to 2 seconds like we do in docker but that is just for test purposes (without that the test would take some minutes to end)

mcollina commented 4 years ago

I do not have the problem on Ubuntu, only on Mac.

robertsLando commented 4 years ago

Sincerly I have no idea Matteo, I don't own a Mac :( just a tought: it could be that persistence is not ready when the test starts ("stream" event isn't emitted)?