]> 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 12:08:24 +0000 (14:08 +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.

bin/tests/system/statschannel/tests.sh

index 6c741776c46c069333692f6ba443a246fa2793f3..42114c8668be9e57a2abb2bf8d63ac9f442b31e7 100644 (file)
@@ -439,10 +439,7 @@ done
 printf '\r\n' >> send.in$n
 
 # send the requests then wait for named to close the socket.
-time1=$($PERL -e 'print time(), "\n";')
 ${NC} 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 1 request to be processed.
 lines=$(grep -c "^HTTP/1.1" send.out$n)
 test $lines = 1 || ret=1