From: Evan Hunt Date: Sun, 17 Oct 2021 18:45:21 +0000 (-0700) Subject: Fix catz test error X-Git-Tag: v9.17.20~39^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b6060c6c476998c9e5f8faf6169ab148dd9a103;p=thirdparty%2Fbind9.git Fix catz test error 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. --- diff --git a/bin/tests/system/catz/tests.sh b/bin/tests/system/catz/tests.sh index 5197fbd94cf..f51ac4ba27f 100644 --- a/bin/tests/system/catz/tests.sh +++ b/bin/tests/system/catz/tests.sh @@ -216,7 +216,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 }