Skip to content

Commit

Permalink
Fix to test both req & res error listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
apapirovski committed Sep 2, 2017
1 parent ad35687 commit 12dfd8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-compat-serverresponse-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const errors = [
let nextError;

const server = http2.createServer(common.mustCall((req, res) => {
req.once('error', common.mustNotCall());
req.once('error', common.mustNotCall());
req.on('error', common.mustNotCall());
res.on('error', common.mustNotCall());

res.on('finish', common.mustCall(() => {
assert.doesNotThrow(() => res.destroy(nextError));
Expand Down

0 comments on commit 12dfd8f

Please sign in to comment.