]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Adjust acceptable count values
authorMark Andrews <marka@isc.org>
Wed, 9 Jun 2021 13:54:14 +0000 (23:54 +1000)
committerMark Andrews <marka@isc.org>
Wed, 9 Jun 2021 22:05:55 +0000 (22:05 +0000)
usleep(100000) can be slightly less than 10ms so allow the count
to reach 11.

lib/dns/tests/db_test.c

index e41a63c0cf469ed32e3ae433160bc59f88030e5a..1eb0dd7f406068ca5e9aac23961dbd9f673204e9 100644 (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: