Index: tests/standalone/io/secure_socket_renegotiate_client.dart |
diff --git a/tests/standalone/io/secure_socket_renegotiate_client.dart b/tests/standalone/io/secure_socket_renegotiate_client.dart |
index d2770121d53f5a09e0fa150303a21ea2425a437e..fda86e3797d71aac7262499a5c3dc7845d721d6b 100644 |
--- a/tests/standalone/io/secure_socket_renegotiate_client.dart |
+++ b/tests/standalone/io/secure_socket_renegotiate_client.dart |
@@ -13,9 +13,11 @@ import "dart:io"; |
const HOST_NAME = "localhost"; |
String localFile(path) => Platform.script.resolve(path).toFilePath(); |
+List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync(); |
SecurityContext clientContext = new SecurityContext() |
- ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem')); |
+ ..setTrustedCertificatesBytes( |
+ readLocalFile('certificates/trusted_certs.pem')); |
class ExpectException implements Exception { |
ExpectException(this.message); |