From: Mark Andrews Date: Wed, 9 Jun 2021 13:54:14 +0000 (+1000) Subject: Adjust acceptable count values X-Git-Tag: v9.17.16~44^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bc454dc2dc8f388bff0e7a527e87529522bb4fd;p=thirdparty%2Fbind9.git Adjust acceptable count values usleep(100000) can be slightly less than 10ms so allow the count to reach 11. --- diff --git a/lib/dns/tests/db_test.c b/lib/dns/tests/db_test.c index e41a63c0cf4..1eb0dd7f406 100644 --- a/lib/dns/tests/db_test.c +++ b/lib/dns/tests/db_test.c @@ -261,7 +261,11 @@ dns_dbfind_staleok_test(void **state) { DNS_DBFIND_STALEOK, 0, &node, found, &rdataset, NULL); } while (result == ISC_R_SUCCESS); - assert_in_range(count, 1, 10); + /* + * usleep(100000) can be slightly less than 10ms so + * allow the count to reach 11. + */ + assert_in_range(count, 1, 11); assert_int_equal(result, ISC_R_NOTFOUND); break; case 2: