| Index: tests/standalone/io/https_client_certificate_test.dart
|
| diff --git a/tests/standalone/io/https_client_certificate_test.dart b/tests/standalone/io/https_client_certificate_test.dart
|
| index 1d9b0e4180c6d867d85c887a716b59e2500cd44c..9c519eb386d08e50682c39adeb95a0c65c15260c 100644
|
| --- a/tests/standalone/io/https_client_certificate_test.dart
|
| +++ b/tests/standalone/io/https_client_certificate_test.dart
|
| @@ -28,8 +28,12 @@ Function test() {
|
| HttpClient client = new HttpClient();
|
| client.getUrl(Uri.parse("https://$HOST_NAME:${server.port}/"))
|
| .then((request) => request.close())
|
| - .then((response) =>
|
| - response.reduce(<int>[], (message, data) => message..addAll(data)))
|
| + .then((response) {
|
| + Expect.equals('CN=localhost', response.certificate.subject);
|
| + Expect.equals('CN=myauthority', response.certificate.issuer);
|
| + return response.reduce(<int>[],
|
| + (message, data) => message..addAll(data));
|
| + })
|
| .then((message) {
|
| String received = new String.fromCharCodes(message);
|
| Expect.equals(received, "Hello");
|
|
|