| Index: tests/standalone/io/secure_builtin_roots_database_test.dart
|
| diff --git a/tests/standalone/io/secure_no_builtin_roots_database_test.dart b/tests/standalone/io/secure_builtin_roots_database_test.dart
|
| similarity index 81%
|
| copy from tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| copy to tests/standalone/io/secure_builtin_roots_database_test.dart
|
| index 078ba706b10f3587dcfe7b24bcb780d7ee86eacb..39660328cb3ee89ebb4987c413985be42a45af81 100644
|
| --- a/tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| +++ b/tests/standalone/io/secure_builtin_roots_database_test.dart
|
| @@ -13,12 +13,10 @@ 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 AsyncError);
|
| - Expect.isTrue(error.error is SocketIOException);
|
| - keepAlive.close();
|
| + .then((response)=> response.last)
|
| + .then((_) {
|
| client.close();
|
| + keepAlive.close();
|
| });
|
| }
|
|
|
| @@ -30,7 +28,7 @@ void InitializeSSL() {
|
| Path certificateDatabase = scriptDir.append('pkcert');
|
| SecureSocket.initialize(database: certificateDatabase.toNativePath(),
|
| password: 'dartdart',
|
| - useBuiltinRoots: false);
|
| + useBuiltinRoots: true);
|
| }
|
|
|
| void main() {
|
|
|