Skip to content

Commit

Permalink
Bump get-stream to 0.4.0 (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak authored and sindresorhus committed Aug 23, 2018
1 parent 2ffcd49 commit 45d3a60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -38,7 +38,7 @@
"cacheable-request": "^4.0.1",
"decompress-response": "^3.3.0",
"duplexer3": "^0.1.4",
"get-stream": "^3.0.0",
"get-stream": "^4.0.0",
"mimic-response": "^1.0.0",
"p-cancelable": "^0.5.0",
"to-readable-stream": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/cancel.js
@@ -1,7 +1,7 @@
import EventEmitter from 'events';
import {Readable} from 'stream';
import test from 'ava';
import getStream from 'get-stream';
import pEvent from 'p-event';
import PCancelable from 'p-cancelable';
import got from '../source';
import {createServer} from './helpers/server';
Expand All @@ -15,7 +15,7 @@ async function createAbortServer() {
request.on('aborted', resolve);
response.on('finish', reject.bind(null, new Error('Request finished instead of aborting.')));

await getStream(request);
await pEvent(request, 'end');
response.end();
});

Expand Down

0 comments on commit 45d3a60

Please sign in to comment.