Skip to content

Commit

Permalink
[Core] Deflaky memory_monitor_test (ray-project#44039)
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Humphries <[email protected]>
  • Loading branch information
jackhumphries authored Mar 23, 2024
1 parent 8efd920 commit 77ee044
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ray/common/test/memory_monitor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ TEST_F(MemoryMonitorTest, TestMonitorPeriodSetMaxUsageThresholdCallbackExecuted)
[has_checked_once](bool is_usage_above_threshold,
MemorySnapshot system_memory,
float usage_threshold) {
ASSERT_EQ(1.0f, usage_threshold);
ASSERT_FLOAT_EQ(1.0f, usage_threshold);
ASSERT_GT(system_memory.total_bytes, 0);
ASSERT_GT(system_memory.used_bytes, 0);
has_checked_once->count_down();
Expand All @@ -160,7 +160,7 @@ TEST_F(MemoryMonitorTest, TestMonitorPeriodDisableMinMemoryCallbackExecuted) {
[has_checked_once](bool is_usage_above_threshold,
MemorySnapshot system_memory,
float usage_threshold) {
ASSERT_EQ(0.4f, usage_threshold);
ASSERT_FLOAT_EQ(0.4f, usage_threshold);
ASSERT_GT(system_memory.total_bytes, 0);
ASSERT_GT(system_memory.used_bytes, 0);
has_checked_once->count_down();
Expand All @@ -178,7 +178,7 @@ TEST_F(MemoryMonitorTest, TestMonitorMinFreeZeroThresholdIsOne) {
[has_checked_once](bool is_usage_above_threshold,
MemorySnapshot system_memory,
float usage_threshold) {
ASSERT_EQ(1.0f, usage_threshold);
ASSERT_FLOAT_EQ(1.0f, usage_threshold);
ASSERT_GT(system_memory.total_bytes, 0);
ASSERT_GT(system_memory.used_bytes, 0);
has_checked_once->count_down();
Expand Down

0 comments on commit 77ee044

Please sign in to comment.