| Index: tests/standalone/io/web_socket_error_test.dart
|
| diff --git a/tests/standalone/io/web_socket_error_test.dart b/tests/standalone/io/web_socket_error_test.dart
|
| index a9ed84a31349e6974dedf3d83836ef7c4f619c0b..31969a3fb67122bae733968b2e053b81b36ebc43 100644
|
| --- a/tests/standalone/io/web_socket_error_test.dart
|
| +++ b/tests/standalone/io/web_socket_error_test.dart
|
| @@ -26,15 +26,14 @@ const String CERT_NAME = 'localhost_cert';
|
| const String 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');
|
|
|
| SecurityContext clientContext = new SecurityContext()
|
| - ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem'));
|
| + ..setTrustedCertificatesSync(localFile('certificates/trusted_certs.pem'));
|
|
|
| /**
|
| * A SecurityConfiguration lets us run the tests over HTTP or HTTPS.
|
|
|