Index: tests/standalone/io/http_client_request_test.dart |
diff --git a/tests/standalone/io/http_client_request_test.dart b/tests/standalone/io/http_client_request_test.dart |
index e7b2110d35237b389ae2cc81123f95cdf630697d..3fd108c2c327a71ed8a3919bb90efdab8e2ac046 100644 |
--- a/tests/standalone/io/http_client_request_test.dart |
+++ b/tests/standalone/io/http_client_request_test.dart |
@@ -29,15 +29,17 @@ void testClientRequest(void handler(request)) { |
.catchError((error) { |
server.close(); |
client.close(); |
- }, test: (e) => e is HttpParserException); |
+ }); |
}); |
} |
void testResponseDone() { |
testClientRequest((request) { |
request.close(); |
- request.done.then((req) { |
- Expect.equals(request, req); |
+ request.done.then((res1) { |
+ request.response.then((res2) { |
+ Expect.equals(res1, res2); |
+ }); |
}); |
return request.response; |
}); |