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

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

Issue 24598002: dart:io | Change two secure networking tests to account for the session cache. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment change 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/io/secure_multiple_client_server_test.dart » ('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 4fe59a95b61d939b050ff698ad7943cd22d3eefc..4028ebc33feedf277769c5f3c9449a38452007fe 100644
--- a/tests/standalone/io/https_bad_certificate_client.dart
+++ b/tests/standalone/io/https_bad_certificate_client.dart
@@ -62,7 +62,7 @@ Future runHttpClient(int port, result) {
client.badCertificateCallback = null;
testFutures.add(client.getUrl(Uri.parse('https://$HOST_NAME:$port/$result'))
.then((HttpClientRequest request) {
- expect(false);
+ expect(result == 'true'); // The session cache may keep the last connection.
}, onError: (e) {
expect(e is HandshakeException || e is SocketException);
}));
« no previous file with comments | « no previous file | tests/standalone/io/secure_multiple_client_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698