| Index: pkg/http/test/client_test.dart
|
| diff --git a/pkg/http/test/client_test.dart b/pkg/http/test/client_test.dart
|
| index 009f1472ca18ff9fedfaa5756ea07a7b71e984b4..e837ba8c9b777402fc9d82c70bcd9190f3b8d12c 100644
|
| --- a/pkg/http/test/client_test.dart
|
| +++ b/pkg/http/test/client_test.dart
|
| @@ -21,12 +21,12 @@ void main() {
|
| request.headers[HttpHeaders.CONTENT_TYPE] =
|
| 'application/json; charset=utf-8';
|
|
|
| - var future = client.send(request).chain((response) {
|
| + var future = client.send(request).then((response) {
|
| expect(response.request, equals(request));
|
| expect(response.statusCode, equals(200));
|
| return consumeInputStream(response.stream);
|
| - }).transform((bytes) => new String.fromCharCodes(bytes));
|
| - future.onComplete((_) => client.close());
|
| + }).then((bytes) => new String.fromCharCodes(bytes));
|
| + future.catchError((_) {}).then((_) => client.close());
|
|
|
| expect(future, completion(parse(equals({
|
| 'method': 'POST',
|
|
|