[master] 1c381f3 Stabilize flaky test r1813

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Jan 27 17:47:05 CET 2017


commit 1c381f3c2d4b8f5687f7cb80c320aa9601d775ab
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Jan 27 17:44:36 2017 +0100

    Stabilize flaky test r1813
    
    Because it uses hard-coded ports, it often appears as failing in vtest
    so now it should succeed if the address wasn't available.

diff --git a/bin/varnishtest/tests/r01813.vtc b/bin/varnishtest/tests/r01813.vtc
index e679f75..7ed9ef8 100644
--- a/bin/varnishtest/tests/r01813.vtc
+++ b/bin/varnishtest/tests/r01813.vtc
@@ -1,3 +1,5 @@
 varnishtest "Duplicate -a arguments"
 
-shell -err -expect {have same address} "varnishd -d -a 127.0.0.1:38484 -a 127.0.0.1:38484 -b localhost:80 2>&1"
+shell -err -match "(have same address)|(already in use)" {
+	varnishd -d -a 127.0.0.1:38484 -a 127.0.0.1:38484 -b localhost:80
+}



More information about the varnish-commit mailing list