Skip to content

Commit e6d4837

Browse files
ShogunPandatargos
authored andcommitted
http: fix failing test
PR-URL: #43641 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent 043756d commit e6d4837

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/parallel/test-stream-finished.js

+3-1
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)