Skip to content

Commit

Permalink
test: don't fail http2 abort test if 'data' is called multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys authored and Trott committed Jul 23, 2018
1 parent 0e4cbde commit ef32a01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ server.listen(0, common.mustCall(() => {
const req = client.request();

req.on('response', common.mustCall(() => {}));
req.on('data', common.mustCallAtLeast(() => {
req.once('data', common.mustCall(() => {
net.Socket.prototype.destroy.call(client.socket);
server.close();
}));
Expand Down

0 comments on commit ef32a01

Please sign in to comment.