| Index: tests/standalone/io/secure_builtin_roots_test.dart
|
| diff --git a/tests/standalone/io/secure_no_builtin_roots_test.dart b/tests/standalone/io/secure_builtin_roots_test.dart
|
| similarity index 79%
|
| copy from tests/standalone/io/secure_no_builtin_roots_test.dart
|
| copy to tests/standalone/io/secure_builtin_roots_test.dart
|
| index c411e62c03ccf95c6d3ee8abec70f3631f1b9477..edfffad2b0f375b3971b8e520de5b7e85a530dc1 100644
|
| --- a/tests/standalone/io/secure_no_builtin_roots_test.dart
|
| +++ b/tests/standalone/io/secure_builtin_roots_test.dart
|
| @@ -13,18 +13,17 @@ void testGoogleUrl() {
|
| HttpClient client = new HttpClient();
|
| client.getUrl(Uri.parse('https://www.google.com'))
|
| .then((request) => request.close())
|
| - .then((response) => Expect.fail("Unexpected successful connection"))
|
| - .catchError((error) {
|
| - Expect.isTrue(error is SocketIOException);
|
| - keepAlive.close();
|
| + .then((response) => response.last)
|
| + .then((_) {
|
| client.close();
|
| + keepAlive.close();
|
| });
|
| }
|
|
|
| void InitializeSSL() {
|
| // If the built-in root certificates aren't loaded, the connection
|
| // should signal an error.
|
| - SecureSocket.initialize(useBuiltinRoots: false);
|
| + SecureSocket.initialize(useBuiltinRoots: true);
|
| }
|
|
|
| void main() {
|
|
|