Skip to content

Commit

Permalink
varnishtest: make process -expect-text on the same scale as vX
Browse files Browse the repository at this point in the history
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: Marco Benatto <mbenatto@redhat.com>
  • Loading branch information
Marco Benatto authored and nigoroll committed Apr 14, 2020
1 parent 7ecd8e5 commit 6f7af3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/varnishtest/vtc_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6f7af3a

Please sign in to comment.