]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
allow more time for journal to sync
authorMark Andrews <marka@isc.org>
Fri, 10 Nov 2017 07:18:04 +0000 (18:18 +1100)
committerMark Andrews <marka@isc.org>
Fri, 10 Nov 2017 07:18:04 +0000 (18:18 +1100)
bin/tests/system/nsupdate/tests.sh

index 52b002bdca15cb47d34de9f0629b471311b1dbba..a9bfa3d38e0eb89d7cac17919132ccdfe20892ec 100755 (executable)
@@ -709,8 +709,12 @@ size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->siz
 [ "$size" -gt 6000 ] || ret=1
 sleep 1
 $RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 sync maxjournal.test
-sleep 1
-
+for i in 1 2 3 4 5 6
+do
+    sleep 1
+    size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->size);' ns1/maxjournal.db.jnl`
+    [ "$size" -lt 5000 ] && break
+done
 size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->size);' ns1/maxjournal.db.jnl`
 [ "$size" -lt 5000 ] || ret=1
 [ $ret = 0 ] || { echo I:failed; status=1; }