From 2bc454dc2dc8f388bff0e7a527e87529522bb4fd Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 9 Jun 2021 23:54:14 +1000 Subject: [PATCH] Adjust acceptable count values usleep(100000) can be slightly less than 10ms so allow the count to reach 11. --- lib/dns/tests/db_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dns/tests/db_test.c b/lib/dns/tests/db_test.c index e41a63c0cf..1eb0dd7f40 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: