doth test: fix failure after reconfig

Sometimes the serving a query or two might fail in the test due to the
listeners not being reinitialised on time. This commit makes the test
suite to wait for reconfiguration message in the log file to detect
the time when the reconfiguration request completed.
This commit is contained in:
Artem Boldariev
2022-01-14 12:25:04 +02:00
parent 89260d6c86
commit d3e7c0e647
2 changed files with 14 additions and 13 deletions

View File

@@ -37,10 +37,6 @@ dig_with_opts() {
"$DIG" $common_dig_options -p "${PORT}" "$@"
}
rndccmd() (
"$RNDC" -c ../common/rndc.conf -p "${CONTROLPORT}" -s "$@"
)
wait_for_tls_xfer() (
srv_number="$1"
shift
@@ -458,7 +454,7 @@ status=$((status + ret))
n=$((n + 1))
echo_i "doing rndc reconfig to see that queries keep being served after that ($n)"
ret=0
rndccmd 10.53.0.4 reconfig
rndc_reconfig ns4 10.53.0.4 60
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))