Index: tests/standalone/io/secure_socket_renegotiate_test.dart |
diff --git a/tests/standalone/io/secure_socket_renegotiate_test.dart b/tests/standalone/io/secure_socket_renegotiate_test.dart |
index 906bfd8b742312e7fc2afb740310057815162bae..7cc934682eab00962fd83ef5e59b60000b31c063 100644 |
--- a/tests/standalone/io/secure_socket_renegotiate_test.dart |
+++ b/tests/standalone/io/secure_socket_renegotiate_test.dart |
@@ -15,12 +15,11 @@ import "package:path/path.dart"; |
const HOST_NAME = "localhost"; |
String localFile(path) => Platform.script.resolve(path).toFilePath(); |
-List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync(); |
SecurityContext serverContext = new SecurityContext() |
- ..useCertificateChainBytes(readLocalFile('certificates/server_chain.pem')) |
- ..usePrivateKeyBytes(readLocalFile('certificates/server_key.pem'), |
- password: 'dartdart'); |
+ ..useCertificateChainSync(localFile('certificates/server_chain.pem')) |
+ ..usePrivateKeySync(localFile('certificates/server_key.pem'), |
+ password: 'dartdart'); |
Future<SecureServerSocket> runServer() { |
return SecureServerSocket.bind(HOST_NAME, 0, serverContext) |