r4489 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Mon Jan 25 22:15:49 CET 2010
Author: phk
Date: 2010-01-25 22:15:48 +0100 (Mon, 25 Jan 2010)
New Revision: 4489
Modified:
trunk/varnish-cache/bin/varnishtest/tests/v00010.vtc
Log:
Use the nice macros we have, to make even this test use randomly
selected port numbers.
I belive varnishtest is now entirely without magic TCP port numbers
and multiple instances should be runable without collision.
Modified: trunk/varnish-cache/bin/varnishtest/tests/v00010.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00010.vtc 2010-01-25 21:07:22 UTC (rev 4488)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00010.vtc 2010-01-25 21:15:48 UTC (rev 4489)
@@ -24,15 +24,12 @@
varnish v1 -cliok "param.set diag_bitmap 0x00001000"
-# We have to force a known listen address otherwise the client cannot find
-# the varnish after the restart.
+# Force the (random) port selected to be used again after restart.
+varnish v1 -cliok "param.set listen_address ${v1_sock}"
-varnish v1 -cliok "param.set listen_address 127.0.0.1:9080" -stop -start
-
# varnishtest defaults to auto_restart off, to avoid masking bugs.
varnish v1 -cliok "param.set auto_restart on"
-
client c1 {
txreq -url "/"
rxresp
More information about the varnish-commit
mailing list