[master] 324d6e4 Wait up to one third of total test duration for varnishd to phone home

Poul-Henning Kamp phk at FreeBSD.org
Sun May 21 16:15:05 CEST 2017


commit 324d6e4ed1677550e14482b7932e1cd57259e9ba
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sun May 21 14:13:39 2017 +0000

    Wait up to one third of total test duration for varnishd to phone home

diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index f098ef8..c385ffc 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -476,7 +476,7 @@ varnish_launch(struct varnish *v)
 	fd[0].events = POLLIN;
 	fd[1].fd = v->fds[1];
 	fd[1].events = POLLIN;
-	i = poll(fd, 2, 10000);
+	i = poll(fd, 2, vtc_maxdur * 1000 / 3);
 	vtc_log(v->vl, 4, "CLIPOLL %d 0x%x 0x%x",
 	    i, fd[0].revents, fd[1].revents);
 	if (i == 0)



More information about the varnish-commit mailing list