From: bert hubert Date: Fri, 12 Aug 2016 19:56:22 +0000 (+0200) Subject: add a test for the overload limit in the distributor X-Git-Tag: rec-4.0.2~27^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9ab3b237ba4d151de28d70f6703dffe6ac948cc;p=thirdparty%2Fpdns.git add a test for the overload limit in the distributor --- diff --git a/regression-tests.nobackend/distributor/command b/regression-tests.nobackend/distributor/command index aa57e5e456..dd59a3ab2f 100755 --- a/regression-tests.nobackend/distributor/command +++ b/regression-tests.nobackend/distributor/command @@ -14,15 +14,15 @@ $PDNS --daemon=no --local-ipv6=::1 --local-address=127.0.0.1 \ --module-dir=../regression-tests/modules --pipe-command=$(pwd)/distributor/slow.pl \ --pipe-abi-version=5 \ --overload-queue-length=10 --log-dns-queries --loglevel=9 \ - --pipe-timeout=1500 & + --pipe-timeout=1000 & sleep 2 -for a in {1..15} +for a in {1..20} do $SDIG 127.0.0.1 $port $a.example.com A >&2 >/dev/null & done -sleep 10 +sleep 1 if [ $($PDNSCONTROL --config-name= --no-config --socket-dir=./ show overload-drops) -gt 0 ] then