Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: tests/standalone/io/https_bad_certificate_client.dart

Issue 24492004: Fix https_bad_certificate_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e7fe817ee4931e7006300dce958d75e2e02cf6b8 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.
+ request.close().then((result) { });
Anders Johnsen 2013/09/26 14:49:08 return request.close(); ?
Bill Hesse 2013/09/26 15:11:07 Done.
}, onError: (e) {
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.
+ request.close().then((result) { });
Anders Johnsen 2013/09/26 14:49:08 Ditto.
}, onError: (e) {
expect(e is HandshakeException || e is SocketException);
}));
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698