File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,10 +274,10 @@ test event-15.1 {vwait with script} {jim} {
274274
275275 local proc waiter {} {&x &result} {
276276 lappend result $x
277- after 50 waiter
277+ after 150 waiter
278278 }
279279
280- after 50 waiter
280+ after 150 waiter
281281 vwait done_waiter [lambda {} {&x} {
282282 # By using a lambda to capture a reference to x, we can
283283 # avoid a global variable. (done_waiter is not used)
@@ -290,7 +290,9 @@ test event-15.1 {vwait with script} {jim} {
290290 # Note that especially on VMs the waiter may run less than 5 times,
291291 # so allow a range for the length of $result.
292292 set rn [llength $result]
293- list $x [expr {$rn >= 3 && $rn <= 5}]
294- } {5 1}
293+ if {$rn < 3 || $rn > 5} {
294+ error "Expected 3-5 iterations, got $rn"
295+ }
296+ } {}
295297
296298testreport
You can’t perform that action at this time.
0 commit comments