use 15_Gi/17_Gi directly
@@ -317,11 +317,10 @@ TEST_F(IndexManagerTest, require_that_memory_index_is_flushed)
TEST_F(IndexManagerTest, require_that_large_memory_footprint_triggers_urgent_flush) {
using FlushStats = IndexMaintainer::FlushStats;
- constexpr size_t G =1_Gi;
- // IndexMaintainer::FlushStats small_15G(15*G, 0, 1, 1);
+ // IndexMaintainer::FlushStats small_15G(15_Gi, 0, 1, 1);
EXPECT_FALSE(IndexFlushTarget(_index_manager->getMaintainer()).needUrgentFlush());
- EXPECT_FALSE(IndexFlushTarget(_index_manager->getMaintainer(), FlushStats(15*G)).needUrgentFlush());
- EXPECT_TRUE(IndexFlushTarget(_index_manager->getMaintainer(), FlushStats(17*G)).needUrgentFlush());
+ EXPECT_FALSE(IndexFlushTarget(_index_manager->getMaintainer(), FlushStats(15_Gi)).needUrgentFlush());
+ EXPECT_TRUE(IndexFlushTarget(_index_manager->getMaintainer(), FlushStats(17_Gi)).needUrgentFlush());
}
TEST_F(IndexManagerTest, require_that_multiple_flushes_gives_multiple_indexes)
