Commit 7b4bb12b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed a race condition: if the client was killed at the wrong time,

the test would crash.
parent 7a3d74c8
......@@ -163,7 +163,24 @@ expect {
timeout {
set size [send_queue_size]
set rate [req_rate]
if {$size > $oldsize} {
# Check to see if the client was killed after the timeout
# fired but before execution arrives here.
set old_timeout $timeout
set timeout 0
set got_it 0
expect {
-re "Client 6 from $any* has stalled\. Killing it\.$nl" {
set got_it 1
}
timeout {
}
}
set timeout $old_timeout
if {$got_it == 1} {
pass "$test"
} elseif {$size > $oldsize} {
set oldsize $size
send_user "Queue is growing... $size\n"
exp_continue
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment