Skip to content

Commit

Permalink
test: add event listener for read stream
Browse files Browse the repository at this point in the history
  • Loading branch information
yunnysunny committed Apr 1, 2022
1 parent 5e9f9d7 commit 8b68b11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/node/query.js
Expand Up @@ -212,6 +212,9 @@ describe('req.query(Object)', () => {
done(err);
});

stream.on('error', function(err) {
done(err);
});
stream.pipe(request_);
});
});

0 comments on commit 8b68b11

Please sign in to comment.