-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tape and server.inject problem #2723
Comments
You might want to give |
Yes I did. Still doesn't work. |
No idea. You can try to run the code without the testing setup just to make sure as a standalone app it runs and exits correctly. |
I tried to call server.stop in app without tesing setup and nothing happened(only stop callback was called but a process was alive).. Function server.stop should make a process exit, right? |
I had a similar problem using tape with hapi caching. I attempted using a timeout with stop, not starting the server and instead starting and stopping the cache itself, but still the test did not complete. I tracked the problem down to the timer set by Catbox-Memory and cleared it: Checking catbox-memory commits, it looks like there's a fix for this in master that hasn't been released yet. |
@cjihrig what's the status of the catbox-memory fix? |
I'll do a release right now. |
@tthyer I just released v1.1.2 of catbox-memory. Care to give it a shot? |
Just confirmed that this works. Thanks! |
@cjihrig can you PR to update hapi with the new version |
Sure thing |
Yes it works! Thank you very much! I got it waiting for #2725 Thanks once again! |
Hello.We are using tape+gulp for testing our hapi server. At first I create a mock:
serverMock is a module
Then test is passing. And at the end:
I want to notice that all tape.end() functions is called but process still alive. I think its because server keep it alive. Maybe you can help me..
The text was updated successfully, but these errors were encountered: