Skip to content

Commit

Permalink
ci: add error event listener for pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
yunnysunny committed Mar 31, 2022
1 parent 633e467 commit 5e9f9d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/node/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ describe('req.query(Object)', () => {
res.body.should.eql({ name: 'tobi' });
done();
});
request_.on('error', (err) => {
done(err);
});

stream.pipe(request_);
});
Expand Down

0 comments on commit 5e9f9d7

Please sign in to comment.