Skip to content

Commit

Permalink
async bind in test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 5, 2018
1 parent 67942cb commit 1f4309b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Have you considered using \`--detectOpenHandles\`?"
exports[`prints out info about open handlers 1`] = `
"Jest has detected the following 1 open handle potentially keeping Jest from exiting:
TCPWRAP
GETADDRINFOREQWRAP
5 | const app = new http.Server();
6 |
> 7 | app.listen();
> 7 | app.listen({host: 'localhost', port: 0});
| ^
8 |
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/detect-open-handles/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ const http = require('http');

const app = new http.Server();

app.listen();
app.listen({host: 'localhost', port: 0});

0 comments on commit 1f4309b

Please sign in to comment.