| 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 645e8e8aeece995f95f835d6555e6f95c605f56a..f3137781795d4798c6b2f0401e6fc15b0d27b842 100644
|
| --- a/tests/standalone/io/http_content_length_test.dart
|
| +++ b/tests/standalone/io/http_content_length_test.dart
|
| @@ -40,8 +40,7 @@ void testNoBody(int totalConnections, bool explicitContentLength) {
|
| // After an explicit close, write becomes a state error
|
| // because we have said we will not add more.
|
| response.close();
|
| - Expect.throws(() => response.write("x"),
|
| - (e) => e is StateError);
|
| + response.write("x");
|
| },
|
| onError: (e) {
|
| String msg = "Unexpected server error $e";
|
| @@ -106,8 +105,7 @@ void testBody(int totalConnections, bool useHeader) {
|
| }
|
| });
|
| response.close();
|
| - Expect.throws(() => response.write("x"),
|
| - (e) => e is StateError);
|
| + response.write("x");
|
| });
|
| },
|
| onError: (e) {
|
| @@ -176,8 +174,7 @@ void testBodyChunked(int totalConnections, bool useHeader) {
|
| response.write("x");
|
| response.write("x");
|
| response.close();
|
| - Expect.throws(() => response.write("x"),
|
| - (e) => e is StateError);
|
| + response.write("x");
|
| });
|
| },
|
| onError: (e) {
|
|
|