Index: tests/standalone/io/http_10_test.dart |
diff --git a/tests/standalone/io/http_10_test.dart b/tests/standalone/io/http_10_test.dart |
index d3ade02c7de8f6d2363d8d899e5ccaf28b87737c..841c9c27d5dcda561f2b5829480cd9f44cf17824 100644 |
--- a/tests/standalone/io/http_10_test.dart |
+++ b/tests/standalone/io/http_10_test.dart |
@@ -30,8 +30,8 @@ void testHttp10NoKeepAlive() { |
response.write("Z"); |
response.write("Z"); |
response.close(); |
- Expect.throws(() => response.write("x"), |
- (e) => e is StateError); |
+ //Expect.throws(() => response.write("x"), |
Anders Johnsen
2013/05/08 13:11:47
Debug stuff in this file.
|
+ // (e) => e is StateError); |
}, |
onError: (e) { |
String msg = "Unexpected error $e"; |
@@ -52,14 +52,16 @@ void testHttp10NoKeepAlive() { |
count++; |
socket.destroy(); |
String s = new String.fromCharCodes(response).toLowerCase(); |
+ print("SSS [$s]"); |
Expect.isTrue(s.indexOf("\r\ncontent-length: 1\r\n") > 0); |
Expect.equals(-1, s.indexOf("keep-alive")); |
- if (count < 10) { |
+ if (count < 2) { |
makeRequest(); |
} else { |
server.close(); |
} |
- }); |
+ }, onError: ((e) => print("XXX $e")) |
+); |
}); |
} |
makeRequest(); |