[master] 5f345db bump the varnishtest CLI timeout from 20 to 30 seconds

Nils Goroll nils.goroll at uplex.de
Wed Dec 3 14:57:03 CET 2014


commit 5f345db5d49c6138cb1636ab00ddfc91fbc9b415
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Dec 3 14:55:58 2014 +0100

    bump the varnishtest CLI timeout from 20 to 30 seconds
    
    This avoids false negatives with slow name resolutions

diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index c0be978..1a826ea 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -98,7 +98,7 @@ varnish_ask_cli(const struct varnish *v, const char *cmd, char **repl)
 		i = write(v->cli_fd, "\n", 1);
 		assert(i == 1);
 	}
-	i = VCLI_ReadResult(v->cli_fd, &retval, &r, 20.0);
+	i = VCLI_ReadResult(v->cli_fd, &retval, &r, 30.0);
 	if (i != 0) {
 		vtc_log(v->vl, 0, "CLI failed (%s) = %d %u %s",
 		    cmd, i, retval, r);



More information about the varnish-commit mailing list