summaryrefslogtreecommitdiffstats
path: root/tests/http.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-01-23 09:03:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-01-23 09:03:46 (GMT)
commit6f64df6c74bca1f0645d629ff7ed7198cdc5316e (patch)
treea80ea51247a38ad3dde075fa8e13506c8e3c316b /tests/http.test
parentb63a137be6a9a9491e5927f5613bbaf84f00532b (diff)
parentae2b9cd377978ef7018b95e2d16b17042e2eb76b (diff)
downloadtcl-6f64df6c74bca1f0645d629ff7ed7198cdc5316e.zip
tcl-6f64df6c74bca1f0645d629ff7ed7198cdc5316e.tar.gz
tcl-6f64df6c74bca1f0645d629ff7ed7198cdc5316e.tar.bz2
Fix [2911139]: connect asynchronously, but without unnecessary internal waits.
Diffstat (limited to 'tests/http.test')
-rw-r--r--tests/http.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/http.test b/tests/http.test
index 3a9d4ba..3ec0a6f 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -464,9 +464,8 @@ test http-4.14 {http::Event} -body {
error "bogus return from http::geturl"
}
http::wait $token
- http::status $token
- # error code varies among platforms.
-} -returnCodes 1 -match regexp -result {(connect failed|couldn't open socket)}
+ lindex [http::error $token] 0
+} -result {connect failed connection refused}
# Bogus host
test http-4.15 {http::Event} -body {
# This test may fail if you use a proxy server. That is to be