Skip to content

Commit 793a5bb

Browse files
rubystargos
authored andcommitted
test: don't fail http2 abort test if 'data' is called multiple times
PR-URL: #21925 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 478dbee commit 793a5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http2-respond-with-file-connection-abort.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ server.listen(0, common.mustCall(() => {
2424
const req = client.request();
2525

2626
req.on('response', common.mustCall(() => {}));
27-
req.on('data', common.mustCallAtLeast(() => {
27+
req.once('data', common.mustCall(() => {
2828
net.Socket.prototype.destroy.call(client.socket);
2929
server.close();
3030
}));

0 commit comments

Comments
 (0)