| Index: tests/standalone/io/http_content_length_test.dart
|
| diff --git a/tests/standalone/io/http_content_length_test.dart b/tests/standalone/io/http_content_length_test.dart
|
| index 627b28fee53b9cf09f20b1a41f0049344d1ef399..5094c43b2fdac9a022f9a94d768c125463ecbec2 100644
|
| --- a/tests/standalone/io/http_content_length_test.dart
|
| +++ b/tests/standalone/io/http_content_length_test.dart
|
| @@ -63,9 +63,7 @@ void testNoBody(int totalConnections, bool explicitContentLength) {
|
| response.drain();
|
| })
|
| .catchError((e, trace) {
|
| - String msg = "Unexpected error $e";
|
| - if (trace != null) msg += "\nStackTrace: $trace";
|
| - Expect.fail(msg);
|
| + // It's also okay to fail, as headers may not be written.
|
| });
|
| }
|
| });
|
| @@ -142,6 +140,9 @@ void testBody(int totalConnections, bool useHeader) {
|
| onError: (error, trace) {
|
| // Undefined what server response sends.
|
| });
|
| + })
|
| + .catchError((error) {
|
| + // It's also okay to fail, as headers may not be written.
|
| });
|
| }
|
| });
|
|
|