Index: utils/tests/pub/pub_uploader_test.dart |
diff --git a/utils/tests/pub/pub_uploader_test.dart b/utils/tests/pub/pub_uploader_test.dart |
index 2ac8722d436334066451003278c390340ed47041..fa585af0bf0e2bcd60a26b3b66805fc83b7c9580 100644 |
--- a/utils/tests/pub/pub_uploader_test.dart |
+++ b/utils/tests/pub/pub_uploader_test.dart |
@@ -54,7 +54,7 @@ main() { |
var pub = startPubUploader(server, ['--package', 'pkg', 'add', 'email']); |
server.handle('POST', '/packages/pkg/uploaders.json', (request, response) { |
- expect(wrapInputStream(request.inputStream).toBytes().then((bodyBytes) { |
+ expect(consumeInputStream(request.inputStream).then((bodyBytes) { |
expect(new String.fromCharCodes(bodyBytes), equals('email=email')); |
response.headers.contentType = new ContentType("application", "json"); |