Index: pkg/http/test/multipart_test.dart |
diff --git a/pkg/http/test/multipart_test.dart b/pkg/http/test/multipart_test.dart |
index ab6d25a280433fbc155b180a4f3a50f8b69d9e9a..5d0aa667ec1d2d81fef92e689ab608a59b654254 100644 |
--- a/pkg/http/test/multipart_test.dart |
+++ b/pkg/http/test/multipart_test.dart |
@@ -156,7 +156,7 @@ void main() { |
test('with a stream file', () { |
var request = new http.MultipartRequest('POST', dummyUrl); |
- var stream = new StreamController.singleSubscription(); |
+ var stream = new StreamController(); |
request.files.add(new http.MultipartFile('file', stream, 5)); |
expect(request, bodyMatches(''' |
@@ -174,7 +174,7 @@ void main() { |
test('with an empty stream file', () { |
var request = new http.MultipartRequest('POST', dummyUrl); |
- var stream = new StreamController.singleSubscription(); |
+ var stream = new StreamController(); |
request.files.add(new http.MultipartFile('file', stream, 0)); |
expect(request, bodyMatches(''' |