| 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.
|
|
|