summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2022-10-26 11:28:29 (GMT)
committerkjnash <k.j.nash@usa.net>2022-10-26 11:28:29 (GMT)
commit2ecf92f50b4fad000f8cf4b368ce47c6035bdf4c (patch)
tree2192cb150867343ff7984c767199c2d2cd9bd1b5 /tests
parentba62d5de6e8d0818da84501ef2dd6cd9a635b27b (diff)
downloadtcl-2ecf92f50b4fad000f8cf4b368ce47c6035bdf4c.zip
tcl-2ecf92f50b4fad000f8cf4b368ce47c6035bdf4c.tar.gz
tcl-2ecf92f50b4fad000f8cf4b368ce47c6035bdf4c.tar.bz2
Minor changes to http tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/http.test5
-rw-r--r--tests/httpProxy.test2
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/http.test b/tests/http.test
index 18850d9..6826448 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -631,7 +631,10 @@ test http-4.14 {http::Event} -body {
test http-4.15 {http::Event} -body {
# This test may fail if you use a proxy server. That is to be
# expected and is not a problem with Tcl.
- set token [http::geturl //not_a_host.tcl.tk -timeout 3000 -command \#]
+ # With http::config -threadlevel 1 or 2, the script enters the event loop
+ # during the DNS lookup, and has the opportunity to time out.
+ # Increase -timeout from 3000 to 10000 to prevent this.
+ set token [http::geturl //not_a_host.tcl.tk -timeout 10000 -command \#]
http::wait $token
set result "[http::status $token] -- [lindex [http::error $token] 0]"
# error codes vary among platforms.
diff --git a/tests/httpProxy.test b/tests/httpProxy.test
index 2d0bea2..42ad574 100644
--- a/tests/httpProxy.test
+++ b/tests/httpProxy.test
@@ -444,7 +444,7 @@ test httpProxy-5.6 {https with-proxy ipv6 with-auth bad-creds-provided} -constra
}
# cleanup
-unset -nocomplain n4host n6host n4port n6port a4host a6host a4port a6port
+unset -nocomplain n4host n6host n4port n6port a4host a6host a4port a6port aliceCreds badCreds
rename bgerror {}