Skip to content

Commit

Permalink
tests: wait for server close in app.listen()
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 14, 2023
1 parent 0debedf commit 8c24fa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/app.listen.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ describe('app.listen()', function(){
var app = express();

var server = app.listen(9999, function(){
server.close();
done();
server.close(done)
});
})
})

0 comments on commit 8c24fa8

Please sign in to comment.