Script using Firebase Server won't end. #44
Comments
Hi, can you try to run the unit tests (git clone this repo, |
Hey, I tried it, they don't. But, I see that you are using Mocha, and another colleague of mine was using Firebase-Server in his tests under Mocha too, and he didn't notice the problem. I hope this helps :) |
Yes, this definitely makes sense. Seems like a problem with the underlaying http://stackoverflow.com/questions/18046639/node-process-doesnt-exit-after-firebase-once |
One workaround I found when using tape was to call Example:
|
@shaunburdick thanks for sharing your workaround! |
I am using the latest version from npm, and running the basic example from docs.
I even tried calling
instance.close
andinstance._wss.close()
explicitly. But the script still keeps hanging. Do you have some hanging listener left?Node version
v4.4.2
andv5.11.0
The text was updated successfully, but these errors were encountered: