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

Unified Diff: tests/standalone/io/secure_builtin_roots_test.dart

Issue 169383003: Make event-handlers edge-triggered and move socket-state to Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/raw_socket_test.dart ('k') | tests/standalone/io/socket_exception_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/secure_builtin_roots_test.dart
diff --git a/tests/standalone/io/secure_builtin_roots_test.dart b/tests/standalone/io/secure_builtin_roots_test.dart
index 025dbe0c619c8bcdbdf34c72c0319e40d4659e10..875ea09e7c5c49678e81ec5d73b85455b2c8a56e 100644
--- a/tests/standalone/io/secure_builtin_roots_test.dart
+++ b/tests/standalone/io/secure_builtin_roots_test.dart
@@ -41,11 +41,14 @@ void testGoogleUrl(bool expectSuccess) {
InternetAddress.lookup('www.google.com').then((_) {
HttpClient client = new HttpClient();
client.getUrl(Uri.parse('https://www.google.com'))
- .then((request) => request.close())
+ .then((request) {
+ request.followRedirects = false;
+ return request.close();
+ })
.then((response) {
Expect.isTrue(expectSuccess, "Unexpected successful connection");
print('SUCCESS');
- return response.last;
+ return response.drain().catchError((_) {});
})
.catchError((error) {
// Allow SocketExceptions if www.google.com is unreachable or down.
« no previous file with comments | « tests/standalone/io/raw_socket_test.dart ('k') | tests/standalone/io/socket_exception_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698