Skip to content

Commit d62be4d

Browse files
committed
http: fix failing test
1 parent 736a7d8 commit d62be4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-stream-finished.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,9 @@ testClosed((opts) => new Writable({ write() {}, ...opts }));
660660
{ method: 'GET', port: this.address().port },
661661
common.mustCall(function(res) {
662662
res.resume();
663-
server.close();
663+
finished(res, common.mustCall(() => {
664+
server.close();
665+
}));
664666
})
665667
).end();
666668
});

0 commit comments

Comments
 (0)