-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to properly terminate (#255)
Which problem is this PR solving? Cleans up two tests so that jest doesn't complain that some tests were failing to close sockets Short description of the changes Destroy a socket rather than close it because the socket was waiting for an acknowledgement that would never come Adjust timeout so that server closes before jest gets bored Call done() from within close() so that it has time to close. Note that the standard formatting has changed a bit in the last 4 years, so this includes some whitespace changes due to eslint. @jessitron contributed a lot to figuring this out.
- Loading branch information
Showing
1 changed file
with
35 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters