summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/http.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/http.test b/tests/http.test
index 85fe559..3c2f4d8 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -79,7 +79,9 @@ if {![info exists ThreadLevel]} {
foreach ThreadLevel $ValueRange {
source [info script]
}
- eval [lpop threadStack]
+ if {[llength $threadStack]} {
+ eval [lpop threadStack]
+ }
catch {unset ThreadLevel}
catch {unset ValueRange}
return