]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add sleeps to ixfr system test
authorMark Andrews <marka@isc.org>
Wed, 5 Oct 2022 05:26:24 +0000 (16:26 +1100)
committerMark Andrews <marka@isc.org>
Wed, 5 Oct 2022 21:18:03 +0000 (08:18 +1100)
ensure that at least a second has passed since a zone was last loaded
to prevent it accidentally being skipped as up to date.

bin/tests/system/ixfr/tests.sh

index 532e6089f948808b93c7b5b346023418759a98b9..65d5a48465242c7d365c7017a3a5857d3fe8bd73 100644 (file)
@@ -217,6 +217,7 @@ retry_quiet 10 wait_for_serial 10.53.0.4 test. 1 dig.out.test$n || ret=1
 nextpart ns4/named.run > /dev/null
 
 # modify the primary
+sleep 1
 cp ns3/mytest1.db ns3/mytest.db
 $RNDCCMD 10.53.0.3 reload | sed 's/^/ns3 /' | cat_i
 
@@ -244,6 +245,7 @@ ret=0
 # we want to make sure that a change to sub.test results in AXFR, while
 # changes to test. result in IXFR
 
+sleep 1
 cp ns3/subtest1.db ns3/subtest.db # change to sub.test zone, should be AXFR
 nextpart ns4/named.run > /dev/null
 $RNDCCMD 10.53.0.3 reload | sed 's/^/ns3 /' | cat_i
@@ -267,6 +269,7 @@ status=$((status+ret))
 n=$((n+1))
 echo_i "testing 'request-ixfr yes' option inheritance from view ($n)"
 ret=0
+sleep 1
 cp ns3/mytest2.db ns3/mytest.db # change to test zone, should be IXFR
 nextpart ns4/named.run > /dev/null
 $RNDCCMD 10.53.0.3 reload | sed 's/^/ns3 /' | cat_i
@@ -417,6 +420,7 @@ ret=0
 echo_i "testing fallback to AXFR when max-ixfr-ratio is exceeded ($n)"
 nextpart ns4/named.run > /dev/null
 
+sleep 1
 cp ns3/mytest3.db ns3/mytest.db # change to test zone, too big for IXFR
 $RNDCCMD 10.53.0.3 reload | sed 's/^/ns3 /' | cat_i