From: Ondřej Surý Date: Thu, 7 Nov 2019 09:39:43 +0000 (+0100) Subject: Relax the requirement for check_next_key_event() to <-60;60> X-Git-Tag: v9.15.6~24^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9df8f4e8e97caaa27b6f5ff92a28da664ad23e1;p=thirdparty%2Fbind9.git Relax the requirement for check_next_key_event() to <-60;60> The original requirement for the check to pass was <-10;10> interval and the first test was failing by 1 second. As the minimum interval for checking is 7200 seconds, the commit relaxes the requirement to <-60;60> interval, which is still sane, but not that draconic. --- diff --git a/bin/tests/system/kasp/tests.sh b/bin/tests/system/kasp/tests.sh index f1cfb25b7ea..90acb1a8e3f 100644 --- a/bin/tests/system/kasp/tests.sh +++ b/bin/tests/system/kasp/tests.sh @@ -1511,10 +1511,10 @@ check_next_key_event() { _time=$(awk '{print $10}' < "keyevent.out.$ZONE.test$n") - # The next key event time must within 10 seconds of the + # The next key event time must within 60 seconds of the # expected time. - _expectmin=$((_expect-10)) - _expectmax=$((_expect+10)) + _expectmin=$((_expect-60)) + _expectmax=$((_expect+60)) test $_expectmin -le "$_time" || log_error "bad next key event time ${_time} for zone ${ZONE} (expect ${_expect})" test $_expectmax -ge "$_time" || log_error "bad next key event time ${_time} for zone ${ZONE} (expect ${_expect})" @@ -1528,7 +1528,6 @@ check_next_key_event() { # TTL plus publish safety plus the zone propagation delay. For the # zsk-prepub policy that means: 30d - 3600s + 1d + 1h = 2498400 seconds. check_next_key_event 2498400 - # # Zone: step2.zsk-prepub.autosign. #