Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: pkg/http/test/request_test.dart

Issue 11411121: Generate an error for active connections when the HTTP client is shutdown (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed long line Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | sdk/lib/io/http.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/request_test.dart
diff --git a/pkg/http/test/request_test.dart b/pkg/http/test/request_test.dart
index 5c2d98c15e5403bb5bd5fbfb720be10717cde618..319abfb63fa871c2edc3b13a565d1bbca079c0d0 100644
--- a/pkg/http/test/request_test.dart
+++ b/pkg/http/test/request_test.dart
@@ -13,23 +13,16 @@ import 'utils.dart';
void main() {
test('.send', () {
- print("This test is known to be flaky, please ignore "
- "(debug prints below added by sgjesse@)");
- print(".send test starting server...");
startServer();
- print(".send test server running");
var request = new http.Request('POST', serverUrl);
request.body = "hello";
var future = request.send().chain((response) {
- print(".send test response received");
expect(response.statusCode, equals(200));
return consumeInputStream(response.stream);
}).transform((bytes) => new String.fromCharCodes(bytes));
future.onComplete((_) {
- print(".send test stopping server...");
stopServer();
- print(".send test server stopped");
});
expect(future, completion(parse(equals({
@@ -41,7 +34,6 @@ void main() {
},
'body': 'hello'
}))));
- print(".send test started");
});
group('#contentLength', () {
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | sdk/lib/io/http.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698