Index: pkg/http/test/http_test.dart |
diff --git a/pkg/http/test/http_test.dart b/pkg/http/test/http_test.dart |
index 92a14fa447d9dea3d81df42f8f128d7cf4ef2e62..69bc43d961a6ccef883595b402537e28d743aa7f 100644 |
--- a/pkg/http/test/http_test.dart |
+++ b/pkg/http/test/http_test.dart |
@@ -298,7 +298,7 @@ main() { |
test('read throws an error for a 4** status code', () { |
expect(startServer().then((_) { |
- expect(http.read(serverUrl.resolve('/error')), throwsHttpException); |
+ expect(http.read(serverUrl.resolve('/error')), throwsClientException); |
}), completes); |
}); |
@@ -326,7 +326,8 @@ main() { |
test('readBytes throws an error for a 4** status code', () { |
expect(startServer().then((_) { |
- expect(http.readBytes(serverUrl.resolve('/error')), throwsHttpException); |
+ expect(http.readBytes(serverUrl.resolve('/error')), |
+ throwsClientException); |
}), completes); |
}); |
}); |