Index: pkg/http/test/response_test.dart |
diff --git a/pkg/http/test/response_test.dart b/pkg/http/test/response_test.dart |
index db19f8867dc06073333289ea69b0d7703470b55b..bcfa5dcaa20573f50aff61cb437c1585beb503df 100644 |
--- a/pkg/http/test/response_test.dart |
+++ b/pkg/http/test/response_test.dart |
@@ -44,7 +44,7 @@ void main() { |
group('.fromStream()', () { |
test('sets body', () { |
- var stream = new StreamController.singleSubscription(); |
+ var stream = new StreamController(); |
var streamResponse = new http.StreamedResponse(stream, 200, 13); |
var future = http.Response.fromStream(streamResponse) |
.then((response) => response.body); |
@@ -56,7 +56,7 @@ void main() { |
}); |
test('sets bodyBytes', () { |
- var stream = new StreamController.singleSubscription(); |
+ var stream = new StreamController(); |
var streamResponse = new http.StreamedResponse(stream, 200, 5); |
var future = http.Response.fromStream(streamResponse) |
.then((response) => response.bodyBytes); |