From 96f63a9f0b5a3949caccaa1363a56d6e758a57fd Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Tue, 9 Jan 2024 13:29:32 +0000 Subject: [PATCH] Make digdelv test work in different network envs (continued) This commit complements the 1e7d832342aa2aaaeb8ef1710ec095dfcade4c6d commit. --- bin/tests/system/digdelv/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index 1e13ed4ff3..ba9b25d9b6 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -1055,7 +1055,7 @@ if [ -x "$DIG" ]; then echo_i "check that dig tries the next server after a TCP socket connection error/timeout ($n)" ret=0 dig_with_opts +tcp @10.53.0.99 @10.53.0.3 a.example >dig.out.test$n 2>&1 || ret=1 - test $(grep -F -e "connection refused" -e "timed out" -e "network unreachable" dig.out.test$n | wc -l) -eq 3 || ret=1 + test $(grep -F -e "connection refused" -e "timed out" -e "network unreachable" -e "host unreachable" dig.out.test$n | wc -l) -eq 3 || ret=1 grep -F "status: NOERROR" dig.out.test$n >/dev/null || ret=1 if [ $ret -ne 0 ]; then echo_i "failed"; fi status=$((status + ret))