]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix catz test error
authorEvan Hunt <each@isc.org>
Sun, 17 Oct 2021 18:45:21 +0000 (11:45 -0700)
committerEvan Hunt <each@isc.org>
Wed, 27 Oct 2021 19:08:19 +0000 (12:08 -0700)
The catz system test included a test case that was looking for a single
answer record after an update, when it should have been looking for two.
The test usually passed because of timing - the first dig usually got a
response before the update was completed - but occasionally the update
processed fast enough for the test to fail. On investigation, it turned
out to be the test that was wrong.

(cherry picked from commit 9b6060c6c476998c9e5f8faf6169ab148dd9a103)

bin/tests/system/catz/tests.sh

index d08e2b415a56aa4ea3538e689876dba845b70cf0..c443b739ff2fa77419a93b8d7ca39f50ff64fd7c 100644 (file)
@@ -217,7 +217,7 @@ echo_i "wait for secondary to be updated again ($n)"
 ret=0
 wait_for_txt() {
        dig_with_opts @10.53.0.2 TXT foo.dom1.example. > dig.out.test$n || return 1
-       grep "ANSWER: 1," dig.out.test$n > /dev/null || return 1
+       grep "ANSWER: 2," dig.out.test$n > /dev/null || return 1
        grep "status: NOERROR" dig.out.test$n > /dev/null || return 1
        grep "IN.TXT." dig.out.test$n > /dev/null || return 1
 }