Index: pkg/http/test/multipart_test.dart |
diff --git a/pkg/http/test/multipart_test.dart b/pkg/http/test/multipart_test.dart |
index 1be547d3f682d07f7c174f17702b3f8c99eed259..78121f623e91518dec6c40059a11124f019b0e45 100644 |
--- a/pkg/http/test/multipart_test.dart |
+++ b/pkg/http/test/multipart_test.dart |
@@ -154,7 +154,7 @@ void main() { |
test('with a stream file', () { |
var request = new http.MultipartRequest('POST', dummyUrl); |
- var controller = new StreamController(); |
+ var controller = new StreamController(sync: true); |
request.files.add(new http.MultipartFile('file', controller.stream, 5)); |
expect(request, bodyMatches(''' |
@@ -172,7 +172,7 @@ void main() { |
test('with an empty stream file', () { |
var request = new http.MultipartRequest('POST', dummyUrl); |
- var controller = new StreamController(); |
+ var controller = new StreamController(sync: true); |
request.files.add(new http.MultipartFile('file', controller.stream, 0)); |
expect(request, bodyMatches(''' |