| Index: tests/standalone/io/secure_bad_certificate_test.dart
|
| diff --git a/tests/standalone/io/secure_bad_certificate_test.dart b/tests/standalone/io/secure_bad_certificate_test.dart
|
| index eeea66bdb6c822bd42d878f04c75c2d125c6c603..610bcdb48bfaa78e2ed7df91186889c936bbe132 100644
|
| --- a/tests/standalone/io/secure_bad_certificate_test.dart
|
| +++ b/tests/standalone/io/secure_bad_certificate_test.dart
|
| @@ -14,9 +14,9 @@ final HOST_NAME = 'localhost';
|
| String localFile(path) => Platform.script.resolve(path).toFilePath();
|
|
|
| SecurityContext serverContext = new SecurityContext()
|
| - ..useCertificateChainSync(localFile('certificates/server_chain.pem'))
|
| - ..usePrivateKeySync(localFile('certificates/server_key.pem'),
|
| - password: 'dartdart');
|
| + ..useCertificateChain(localFile('certificates/server_chain.pem'))
|
| + ..usePrivateKey(localFile('certificates/server_key.pem'),
|
| + password: 'dartdart');
|
|
|
| class CustomException {}
|
|
|
| @@ -30,7 +30,7 @@ main() async {
|
| }, onError: (e) { if (e is! HandshakeException) throw e; });
|
|
|
| SecurityContext goodContext = new SecurityContext()
|
| - ..setTrustedCertificatesSync(localFile('certificates/trusted_certs.pem'));
|
| + ..setTrustedCertificates(localFile('certificates/trusted_certs.pem'));
|
| SecurityContext badContext = new SecurityContext();
|
| SecurityContext defaultContext = SecurityContext.defaultContext;
|
|
|
|
|