Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
chill117 committed Apr 18, 2024
1 parent 7634b62 commit 2080fcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/lib/Server/close.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ describe.only('close([options])', function() {

beforeEach(function() {
server.bindToHook('status', (req, res, next) => {
// Do nothing so that the server does not automatically close the socket.
// Delay here so that the socket is not closed immediately.
setTimeout(next, 500);
});
Array.from(Array(3)).forEach(() => {
const req = http.get(server.getUrl('/status'), () => {});
Expand Down

0 comments on commit 2080fcf

Please sign in to comment.