| Index: tests/standalone/io/https_bad_certificate_test.dart
|
| diff --git a/tests/standalone/io/https_bad_certificate_test.dart b/tests/standalone/io/https_bad_certificate_test.dart
|
| index fdd83e316d972217060dd8a5c9ac7c2dc93c8701..dacd3203ed7136575f78ba5419fe86e66bce8159 100644
|
| --- a/tests/standalone/io/https_bad_certificate_test.dart
|
| +++ b/tests/standalone/io/https_bad_certificate_test.dart
|
| @@ -12,11 +12,12 @@ import "package:expect/expect.dart";
|
| final HOST_NAME = 'localhost';
|
|
|
| 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');
|
|
|
| class CustomException {}
|
|
|
|
|