Index: pkg/http/test/multipart_test.dart |
diff --git a/pkg/http/test/multipart_test.dart b/pkg/http/test/multipart_test.dart |
index abbd5094d3a80f3e64408865c8a0c53d1cb1f890..0e66bf3cbcda1ad28db35d7c2d673025505538f3 100644 |
--- a/pkg/http/test/multipart_test.dart |
+++ b/pkg/http/test/multipart_test.dart |
@@ -29,7 +29,7 @@ class _BodyMatches extends BaseMatcher { |
bool matches(item, MatchState matchState) { |
if (item is! http.MultipartRequest) return false; |
- var future = consumeInputStream(item.finalize()).transform((bodyBytes) { |
+ var future = consumeInputStream(item.finalize()).then((bodyBytes) { |
var body = decodeUtf8(bodyBytes); |
var contentType = new ContentType.fromString( |
item.headers['content-type']); |