| 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', () {
|
|
|