| Index: tests/standalone/io/http_proxy_test.dart
|
| diff --git a/tests/standalone/io/http_proxy_test.dart b/tests/standalone/io/http_proxy_test.dart
|
| index e5607e9488e8d909e960f398ffccc68074f57908..dd0d3bce02f03bed3193b62af1acc59232f2cf02 100644
|
| --- a/tests/standalone/io/http_proxy_test.dart
|
| +++ b/tests/standalone/io/http_proxy_test.dart
|
| @@ -10,11 +10,12 @@ import "dart:io";
|
| import 'dart:convert';
|
|
|
| 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');
|
| + ..usePrivateKeyBytes(readLocalFile('certificates/server_key.pem'),
|
| + password: 'dartdart');
|
|
|
| SecurityContext clientContext = new SecurityContext()
|
| ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem'));
|
|
|