| Index: tests/standalone/io/https_bad_certificate_client.dart
|
| diff --git a/tests/standalone/io/https_bad_certificate_client.dart b/tests/standalone/io/https_bad_certificate_client.dart
|
| index 9a26ab62612e04b5f1361a0e18dfa1a9bf4775e6..62e9039efbaff1a245a05a545d21eb72ccfd8cca 100644
|
| --- a/tests/standalone/io/https_bad_certificate_client.dart
|
| +++ b/tests/standalone/io/https_bad_certificate_client.dart
|
| @@ -42,6 +42,7 @@ Future runHttpClient(int port, result) {
|
| testFutures.add(client.getUrl(Uri.parse('https://$HOST_NAME:$port/$result'))
|
| .then((HttpClientRequest request) {
|
| expect(result == 'true'); // The session cache may keep the session.
|
| + return request.close();
|
| }, onError: (e) {
|
| expect(e is HandshakeException || e is SocketException);
|
| }));
|
| @@ -50,7 +51,7 @@ Future runHttpClient(int port, result) {
|
| testFutures.add(client.getUrl(Uri.parse('https://$HOST_NAME:$port/$result'))
|
| .then((HttpClientRequest request) {
|
| expect(result == 'true');
|
| - request.close().then((result) { });
|
| + return request.close();
|
| }, onError: (e) {
|
| if (result == 'false') expect (e is HandshakeException ||
|
| e is SocketException);
|
| @@ -63,6 +64,7 @@ Future runHttpClient(int port, result) {
|
| testFutures.add(client.getUrl(Uri.parse('https://$HOST_NAME:$port/$result'))
|
| .then((HttpClientRequest request) {
|
| expect(result == 'true'); // The session cache may keep the session.
|
| + return request.close();
|
| }, onError: (e) {
|
| expect(e is HandshakeException || e is SocketException);
|
| }));
|
|
|