mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
REGTESTS: switch to -Ws for master-worker reg-tests
The -W mode implemented in VTest is not reliable anymore, because VTest waits for the pidfile to be created. But with the new master-worker mode, this file is created long before haproxy is ready. This can lead to the test being started too soon, and failing from time to time. The -Ws option allows to wait for haproxy to deliver a message to VTest once it is ready.
This commit is contained in:
parent
2ce0db4e4b
commit
b7d81b3511
@ -2,7 +2,7 @@ varnishtest "Test the http-reuse always mode"
|
|||||||
|
|
||||||
feature ignore_unknown_macro
|
feature ignore_unknown_macro
|
||||||
|
|
||||||
haproxy h1 -W -conf {
|
haproxy h1 -Ws -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 30s
|
timeout client 30s
|
||||||
timeout server 30s
|
timeout server 30s
|
||||||
|
@ -7,7 +7,7 @@ server s1 {
|
|||||||
txresp
|
txresp
|
||||||
} -repeat 2 -start
|
} -repeat 2 -start
|
||||||
|
|
||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -Ws -S -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
@ -19,7 +19,7 @@ syslog S1 -level info {
|
|||||||
} -start
|
} -start
|
||||||
|
|
||||||
|
|
||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -Ws -S -conf {
|
||||||
global
|
global
|
||||||
log ${S1_addr}:${S1_port} local0 info
|
log ${S1_addr}:${S1_port} local0 info
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ feature ignore_unknown_macro
|
|||||||
server s1 {
|
server s1 {
|
||||||
} -start
|
} -start
|
||||||
|
|
||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -Ws -S -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
@ -8,7 +8,7 @@ feature ignore_unknown_macro
|
|||||||
server s1 {
|
server s1 {
|
||||||
} -start
|
} -start
|
||||||
|
|
||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -Ws -S -conf {
|
||||||
global
|
global
|
||||||
expose-deprecated-directives
|
expose-deprecated-directives
|
||||||
defaults
|
defaults
|
||||||
|
@ -23,7 +23,7 @@ feature cmd "command -v grep"
|
|||||||
#EXCLUDE_TARGETS=freebsd,osx,generic
|
#EXCLUDE_TARGETS=freebsd,osx,generic
|
||||||
#REGTEST_TYPE=devel
|
#REGTEST_TYPE=devel
|
||||||
|
|
||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -Ws -S -conf {
|
||||||
global
|
global
|
||||||
stats socket "${tmpdir}/h1/stats" level admin expose-fd listeners
|
stats socket "${tmpdir}/h1/stats" level admin expose-fd listeners
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ feature cmd "command -v curl"
|
|||||||
#EXCLUDE_TARGETS=freebsd,osx,generic
|
#EXCLUDE_TARGETS=freebsd,osx,generic
|
||||||
#REGTEST_TYPE=devel
|
#REGTEST_TYPE=devel
|
||||||
|
|
||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -Ws -S -conf {
|
||||||
global
|
global
|
||||||
stats socket "${tmpdir}/h1/stats" level admin expose-fd listeners
|
stats socket "${tmpdir}/h1/stats" level admin expose-fd listeners
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user