Skip to content

Commit

Permalink
Increase tolerances for LruClockTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyastolfi committed Mar 15, 2024
1 parent 02faf9f commit 030635a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/llfs/lru_clock.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void run_sync_update_test(const usize kNumFastThreads)
std::thread slow_thread{[&slow_thread_values] {
for (usize i = 0; i < kSlowThreadReads; ++i) {
std::this_thread::sleep_for(
std::chrono::microseconds(llfs::LRUClock::kMaxSyncDelayUsec * 10));
std::chrono::microseconds(llfs::LRUClock::kMaxSyncDelayUsec * 40));
slow_thread_values[i] = llfs::LRUClock::read_local();
}
}};
Expand Down Expand Up @@ -144,7 +144,7 @@ void run_sync_update_test(const usize kNumFastThreads)
<< BATT_INSPECT(max_count) << BATT_INSPECT_RANGE(slow_thread_values);
}

EXPECT_GT(slow_thread_values.back(), kUpdatesPerThread / 2);
EXPECT_GT(slow_thread_values.back(), kUpdatesPerThread / 10);
}

TEST(LruClockTest, SyncUpdate1)
Expand Down

0 comments on commit 030635a

Please sign in to comment.