Skip to content

Commit f6e1091

Browse files
authored
[ML] Increase tolerance for read/write lock test (#1760)
In #1759 the tolerance on the read/write lock test had to be increased again due to a problem with sleep calls sleeping for longer than specified when running under Jenkins on macOS on ARM. The change was in the 2nd commit on #1759. This change makes the same increase on the master branch, to keep the branches in sync.
1 parent b8fba1d commit f6e1091

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/core/unittest/CReadWriteLockTest.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,10 @@ BOOST_AUTO_TEST_CASE(testReadLock) {
241241

242242
LOG_INFO(<< "Reader concurrency test took " << duration << " seconds");
243243

244-
// Allow the test to run slightly over 1 second, as there is processing
245-
// other than the sleeping.
246-
BOOST_TEST_REQUIRE(duration <= 2);
244+
// Allow the test to run up to 3 seconds, as there is processing
245+
// other than the sleeping, and also sleeps are not very accurate
246+
// under Jenkins on Apple M1.
247+
BOOST_TEST_REQUIRE(duration <= 3);
247248
BOOST_TEST_REQUIRE(duration >= 1);
248249

249250
BOOST_REQUIRE_EQUAL(testVariable, reader1.lastRead());

0 commit comments

Comments
 (0)