mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +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:
parent
efacee3d09
commit
2bc454dc2d
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user