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

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

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error 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 | « pkg/http/test/mock_client_test.dart ('k') | pkg/http/test/utils.dart » ('j') | no next file with comments »
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 2869576dda8b55e7d6acaa807bc7adfa7bdc18eb..5c2d98c15e5403bb5bd5fbfb720be10717cde618 100644
--- a/pkg/http/test/request_test.dart
+++ b/pkg/http/test/request_test.dart
@@ -13,15 +13,24 @@ 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((_) => stopServer());
+ future.onComplete((_) {
+ print(".send test stopping server...");
+ stopServer();
+ print(".send test server stopped");
+ });
expect(future, completion(parse(equals({
'method': 'POST',
@@ -32,6 +41,7 @@ void main() {
},
'body': 'hello'
}))));
+ print(".send test started");
});
group('#contentLength', () {
« no previous file with comments | « pkg/http/test/mock_client_test.dart ('k') | pkg/http/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698