Closed
Description
I am developing integration tests and have problems with negative case testing - my test app never exits.
Steps to Reproduce:
- Call connect to vhost, for which user does not have permissions
- See that err callback is called
- See that NodeJS app just hangs, never exits.
I found that reason is that the following block is only called on timeout:
sock.end();
sock.destroy();
And it is never called on other connection errors.
Metadata
Metadata
Assignees
Labels
No labels