From 3012e1ad9bc4283f19dff73a346e6d9b8a92785c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 18 May 2020 13:45:10 +1000 Subject: [PATCH] Extend loop count by 1 to account for non-exact timing in usleep(). --- lib/dns/tests/db_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/tests/db_test.c b/lib/dns/tests/db_test.c index 2164df760e..a598495a61 100644 --- a/lib/dns/tests/db_test.c +++ b/lib/dns/tests/db_test.c @@ -211,7 +211,7 @@ dns_dbfind_staleok_test(void **state) { count = 0; do { count++; - assert_in_range(count, 0, 20); /* loop sanity */ + assert_in_range(count, 1, 21); /* loop sanity */ assert_int_equal(rdataset.attributes & DNS_RDATASETATTR_STALE, 0);