| Index: tests/standalone/io/regress_21160_test.dart
|
| diff --git a/tests/standalone/io/regress_21160_test.dart b/tests/standalone/io/regress_21160_test.dart
|
| index 95ccfcaf112a8fc32c07b433ed78c33b1d93a5b7..d08794278a6a20af38ee565f04613fa1c51b1a52 100644
|
| --- a/tests/standalone/io/regress_21160_test.dart
|
| +++ b/tests/standalone/io/regress_21160_test.dart
|
| @@ -11,11 +11,12 @@ import "dart:io";
|
| import "dart:typed_data";
|
|
|
| String localFile(path) => Platform.script.resolve(path).toFilePath();
|
| +List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync();
|
|
|
| SecurityContext serverContext = new SecurityContext()
|
| ..useCertificateChain(localFile('certificates/server_chain.pem'))
|
| - ..usePrivateKey(localFile('certificates/server_key.pem'),
|
| - password: 'dartdart');
|
| + ..usePrivateKeyAsBytes(readLocalFile('certificates/server_key.pem'),
|
| + password: 'dartdart');
|
|
|
| SecurityContext clientContext = new SecurityContext()
|
| ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem'));
|
|
|