Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Feb 29, 2020
1 parent 6c9f5e0 commit 47f4adf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,14 @@ test('no unhandled body stream errors', async t => {
code: 'ENOTFOUND'
});
});

test('works with pipeline', async t => {
await t.throwsAsync(pStreamPipeline(
new stream.Readable({
read: function () {
this.push(null);
}
}),
got.stream.put('http://localhost:7777')
), {message: 'connect ECONNREFUSED 127.0.0.1:7777'});
});

0 comments on commit 47f4adf

Please sign in to comment.