| 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 84%
|
| copy from tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| copy to tests/standalone/io/secure_builtin_roots_database_test.dart
|
| index 8c647d06913a8228515f37a657026c644cbe4eac..39660328cb3ee89ebb4987c413985be42a45af81 100644
|
| --- a/tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| +++ b/tests/standalone/io/secure_builtin_roots_database_test.dart
|
| @@ -13,11 +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 SocketIOException);
|
| - keepAlive.close();
|
| + .then((response)=> response.last)
|
| + .then((_) {
|
| client.close();
|
| + keepAlive.close();
|
| });
|
| }
|
|
|
| @@ -29,7 +28,7 @@ void InitializeSSL() {
|
| Path certificateDatabase = scriptDir.append('pkcert');
|
| SecureSocket.initialize(database: certificateDatabase.toNativePath(),
|
| password: 'dartdart',
|
| - useBuiltinRoots: false);
|
| + useBuiltinRoots: true);
|
| }
|
|
|
| void main() {
|
|
|