2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Merge branch '2760-db-unit-test-failure' into 'main'

Resolve "db unit test failure"

Closes #2760

See merge request isc-projects/bind9!5156
This commit is contained in:
Mark Andrews
2021-06-09 22:29:46 +00:00

View File

@@ -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: