2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 21:47:59 +00:00

Adjust acceptable count values

usleep(100000) can be slightly less than 10ms so allow the count
to reach 11.
This commit is contained in:
Mark Andrews 2021-06-09 23:54:14 +10:00
parent efacee3d09
commit 2bc454dc2d

View File

@ -261,7 +261,11 @@ dns_dbfind_staleok_test(void **state) {
DNS_DBFIND_STALEOK, 0, &node, found, DNS_DBFIND_STALEOK, 0, &node, found,
&rdataset, NULL); &rdataset, NULL);
} while (result == ISC_R_SUCCESS); } 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); assert_int_equal(result, ISC_R_NOTFOUND);
break; break;
case 2: case 2: