author | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-11-29 02:06:48 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-11-30 10:03:48 UTC |
parent | 29709a0d586963712ae780785ba25d61e49be3dd |
test/t-09-loop/run.sh | +3 | -1 |
diff --git a/test/t-09-loop/run.sh b/test/t-09-loop/run.sh index 7e70221..7845a40 100755 --- a/test/t-09-loop/run.sh +++ b/test/t-09-loop/run.sh @@ -47,7 +47,9 @@ wget -q -o /dev/null -O .data-A/dbg-root http://localhost:1099/404 \ while sleep 0.1; do wget -q -o /dev/null -O .data-A/vars http://localhost:1099/debug/vars wget -q -o /dev/null -O .data-B/vars http://localhost:2099/debug/vars - if grep -q '"chasquid/smtpIn/loopsDetected": 1,' .data-?/vars; then + # Allow for up to 2 loops to be detected, because if chasquid is fast + # enough the DSN will also loop before this check notices it. + if grep -q '"chasquid/smtpIn/loopsDetected": [12],' .data-?/vars; then break fi done