Skip to content

Commit

Permalink
test: deflake http2-cancel-while-client-reading
Browse files Browse the repository at this point in the history
Add missing `'error'` event handler.

Fixes: #40610

PR-URL: #40659
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
lpinca authored and BethGriggs committed Nov 25, 2021
1 parent 48a785e commit f114e35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-http2-cancel-while-client-reading.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ server.on('stream', common.mustCall(function(stream) {
client_stream.pause();
client_stream.close(http2.constants.NGHTTP2_CANCEL);
});
stream.on('error', () => {});
}));

server.listen(0, function() {
Expand Down

0 comments on commit f114e35

Please sign in to comment.