Index: tests/standalone/io/http_auth_test.dart |
diff --git a/tests/standalone/io/http_auth_test.dart b/tests/standalone/io/http_auth_test.dart |
index c6acccb688ccb5ad6cd641bc2f7da16cbf9bf7a4..d1a706a88bbe622ccfb9ec59dd96bf8db6557910 100644 |
--- a/tests/standalone/io/http_auth_test.dart |
+++ b/tests/standalone/io/http_auth_test.dart |
@@ -98,7 +98,7 @@ void testBasicNoCredentials() { |
.then((HttpClientRequest request) => request.close()) |
.then((HttpClientResponse response) { |
Expect.equals(HttpStatus.UNAUTHORIZED, response.statusCode); |
- return response.reduce(null, (x, y) {}); |
+ return response.fold(null, (x, y) {}); |
}); |
} |
@@ -128,7 +128,7 @@ void testBasicCredentials() { |
.then((HttpClientRequest request) => request.close()) |
.then((HttpClientResponse response) { |
Expect.equals(HttpStatus.OK, response.statusCode); |
- return response.reduce(null, (x, y) {}); |
+ return response.fold(null, (x, y) {}); |
}); |
} |
@@ -181,7 +181,7 @@ void testBasicAuthenticateCallback() { |
.then((HttpClientRequest request) => request.close()) |
.then((HttpClientResponse response) { |
Expect.equals(HttpStatus.OK, response.statusCode); |
- return response.reduce(null, (x, y) {}); |
+ return response.fold(null, (x, y) {}); |
}); |
} |