Unverified Commit 6f7af3a5 authored by Marco Benatto's avatar Marco Benatto Committed by Nils Goroll

varnishtest: make process -expect-text on the same scale as vX

Currently on process pX -expect-text varnishtest uses at most
300000 us pauses. This make it offscale when compared on what
varnish vX -expect does by trying 50 times with 100us pause
in a total of 5s.

Chaning term_expect_text() wait 3s before failing avoid tests
to cause false positive under stress (i.e.: r02990) but putting
process pX -expect-text and varnish vX -expect at the same time
scale.
Signed-off-by: 's avatarMarco Benatto <mbenatto@redhat.com>
parent 7ecd8e54
......@@ -313,7 +313,7 @@ term_expect_text(struct process *pp,
AZ(pthread_mutex_unlock(&pp->mtx));
usleep(d);
AZ(pthread_mutex_lock(&pp->mtx));
if (d < 300000)
if (d < 3000000)
d += d;
}
AZ(pthread_mutex_unlock(&pp->mtx));
......
Markdown is supported
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