]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove the time requirement for the statschannel truncated test
authorOndřej Surý <ondrej@isc.org>
Wed, 19 Oct 2022 11:52:09 +0000 (13:52 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 19 Oct 2022 13:30:44 +0000 (15:30 +0200)
The 5 seconds requirement to finish the 'pipelined with truncated
stream' was causing spurious failures in the CI because the job runners
might be very busy and sending 128k of data might simply take some time.

Remove the time requirement altogether, there's actually no reason why
the test SHOULD or even MUST finish under 5 seconds.

(cherry picked from commit 0f56a53d661cd5ec26bc943b52d9610fa4542041)

bin/tests/system/statschannel/tests.sh

index 8bc2a331fef559c9357fd148f96d610e601c4353..e53eafaff1b2c9c7ea749ca5655b695f779c0e98 100644 (file)
@@ -451,10 +451,7 @@ i=$((i+1))
 done
 
 # send the requests then wait for named to close the socket.
-time1=$($PERL -e 'print time(), "\n";')
 ${PERL} send64k.pl 10.53.0.3 ${EXTRAPORT1} < send.in$n  > send.out$n
-time2=$($PERL -e 'print time(), "\n";')
-test $((time2 - time1)) -lt 5 || ret=1
 # we expect 91 of the 500 requests to be processed.
 lines=$(grep "^HTTP/1.1" send.out$n | wc -l)
 test $lines = 91 || ret=1