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 f3137781795d4798c6b2f0401e6fc15b0d27b842..627b28fee53b9cf09f20b1a41f0049344d1ef399 100644 |
--- a/tests/standalone/io/http_content_length_test.dart |
+++ b/tests/standalone/io/http_content_length_test.dart |
@@ -42,9 +42,8 @@ void testNoBody(int totalConnections, bool explicitContentLength) { |
response.close(); |
response.write("x"); |
}, |
- onError: (e) { |
+ onError: (e, trace) { |
String msg = "Unexpected server error $e"; |
- var trace = getAttachedStackTrace(e); |
if (trace != null) msg += "\nStackTrace: $trace"; |
Expect.fail(msg); |
}); |
@@ -63,9 +62,8 @@ void testNoBody(int totalConnections, bool explicitContentLength) { |
Expect.equals(0, response.contentLength); |
response.drain(); |
}) |
- .catchError((e) { |
+ .catchError((e, trace) { |
String msg = "Unexpected error $e"; |
- var trace = getAttachedStackTrace(e); |
if (trace != null) msg += "\nStackTrace: $trace"; |
Expect.fail(msg); |
}); |
@@ -108,9 +106,8 @@ void testBody(int totalConnections, bool useHeader) { |
response.write("x"); |
}); |
}, |
- onError: (e) { |
+ onError: (e, trace) { |
String msg = "Unexpected error $e"; |
- var trace = getAttachedStackTrace(e); |
if (trace != null) msg += "\nStackTrace: $trace"; |
Expect.fail(msg); |
}); |
@@ -142,7 +139,7 @@ void testBody(int totalConnections, bool useHeader) { |
client.close(); |
} |
}, |
- onError: (error) { |
+ onError: (error, trace) { |
// Undefined what server response sends. |
}); |
}); |
@@ -177,9 +174,8 @@ void testBodyChunked(int totalConnections, bool useHeader) { |
response.write("x"); |
}); |
}, |
- onError: (e) { |
+ onError: (e, trace) { |
String msg = "Unexpected error $e"; |
- var trace = getAttachedStackTrace(e); |
if (trace != null) msg += "\nStackTrace: $trace"; |
Expect.fail(msg); |
}); |
@@ -215,9 +211,8 @@ void testBodyChunked(int totalConnections, bool useHeader) { |
} |
}); |
}) |
- .catchError((e) { |
+ .catchError((e, trace) { |
String msg = "Unexpected error $e"; |
- var trace = getAttachedStackTrace(e); |
if (trace != null) msg += "\nStackTrace: $trace"; |
Expect.fail(msg); |
}); |