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

Side by Side Diff: dart/tests/standalone/io/http_cross_process_test.dart

Issue 486853005: Fix idle connection pool issue in dart:io's HttpClient (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed existing tests, removed bogus test, use async_helper for new test Created 6 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 5
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 const int NUM_SERVERS = 10; 10 const int NUM_SERVERS = 10;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 print(result.stderr); 47 print(result.stderr);
48 Expect.fail('Client subprocess exit code: ${result.exitCode}'); 48 Expect.fail('Client subprocess exit code: ${result.exitCode}');
49 } 49 }
50 }); 50 });
51 } 51 }
52 52
53 runClient(int port) { 53 runClient(int port) {
54 var client = new HttpClient(); 54 var client = new HttpClient();
55 client.get('127.0.0.1', port, "/") 55 client.get('127.0.0.1', port, "/")
56 .then((request) => request.close()) 56 .then((request) => request.close())
57 .then((response) => response.listen((data) {}, 57 .then((response) => response.drain())
58 onDone: () => print('SUCCESS'))); 58 .then((_) => client.close())
59 .then((_) => print('SUCCESS'));
59 } 60 }
OLDNEW
« no previous file with comments | « dart/tests/standalone/io/http_client_timeout_test.dart ('k') | dart/tests/standalone/io/https_bad_certificate_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698