-
Notifications
You must be signed in to change notification settings - Fork 50
start_server callback not being called #12
Comments
@azhang i've reworked this all deal in a last few days, i would suggest to use latest release, that should be all fixed now. |
@winfinit On a related note, the start_server callback arg is getting called even if it's undefined (callback is not a function errors abound). Could we look before leaping here so people don't have to pass dummy callbacks? Mockgoose as an example: mccormicka/Mockgoose#204 I'd be happy to PR if you'd like. |
I'm actually having the same issue using 5.0.3
The
|
Sorry if I'm confused. Looking at the code though I don't see how callback is/was ever called. Maybe I'm mis-understanding what's supposed to happen. Looking in
That's it. There's no use of callback in any other case so no way for callback to be called once mongod starts. Am I mis-understanding? |
@greggman No, I think you're right, and the new version doesn't address this. Using the callback for everything would be nice, and it looks like it wouldn't take much, but it'd be a breaking change. |
Ok, but it's the example in the README so if that's not the way it's supposed to work maybe the README should change? |
the 4.x codebase used to return an EventEmitter from it looks like the 5.x line no longer does this |
there was a complete rewrite of this library, please use 6.x release |
I'm using Mockgoose for some tests running on Circlei, and have been running into an issue where it hangs when starting up mongodb. I've traced it back to the
mongod.start_server
never running the callback.It works fine on my local machine (mac), but I can't seem to get it working on any circleci instance. Any ideas?
The text was updated successfully, but these errors were encountered: