Index: pkg/http/test/multipart_test.dart |
diff --git a/pkg/http/test/multipart_test.dart b/pkg/http/test/multipart_test.dart |
index e7ea1e5335a2de550c49faaf1bae68d0a764553e..288a445d74de89c06f953948cc141706642ffdb0 100644 |
--- a/pkg/http/test/multipart_test.dart |
+++ b/pkg/http/test/multipart_test.dart |
@@ -213,7 +213,7 @@ void main() { |
tearDown(() => tempDir.deleteSync(recursive: true)); |
test('with a file from disk', () { |
- expect(new Future.of(() { |
+ expect(new Future.sync(() { |
var filePath = path.join(tempDir.path, 'test-file'); |
new File(filePath).writeAsStringSync('hello'); |
return http.MultipartFile.fromPath('file', filePath); |