From e80a80c7d932ab60c5b31ad50c7b62d5fb0b37bc Mon Sep 17 00:00:00 2001 From: Deepika Upadhyay Date: Wed, 23 Jun 2021 10:44:21 +0530 Subject: [PATCH] test: update test for when cache tier is not available Signed-off-by: Deepika Upadhyay --- src/test/mon/PGMap.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/mon/PGMap.cc b/src/test/mon/PGMap.cc index 7280601fc3ac2..7566651323fe1 100644 --- a/src/test/mon/PGMap.cc +++ b/src/test/mon/PGMap.cc @@ -79,8 +79,9 @@ TEST(pgmap, dump_object_stat_sum_0) pool.quota_max_bytes = 2000 * 1024 * 1024; pool.size = 2; pool.type = pg_pool_t::TYPE_REPLICATED; + pool.tier_of = 0; PGMap::dump_object_stat_sum(tbl, nullptr, pool_stat, avail, - pool.get_size(), verbose, true, true, &pool); + pool.get_size(), verbose, true, true, &pool); float copies_rate = (static_cast(sum.num_object_copies - sum.num_objects_degraded) / sum.num_object_copies) * pool.get_size(); @@ -120,8 +121,9 @@ TEST(pgmap, dump_object_stat_sum_1) pool.quota_max_bytes = 2000 * 1024 * 1024; pool.size = 2; pool.type = pg_pool_t::TYPE_REPLICATED; + pool.tier_of = 0; PGMap::dump_object_stat_sum(tbl, nullptr, pool_stat, avail, - pool.get_size(), verbose, true, true, &pool); + pool.get_size(), verbose, true, true, &pool); unsigned col = 0; ASSERT_EQ(stringify(byte_u_t(0)), tbl.get(0, col++)); ASSERT_EQ(stringify(byte_u_t(0)), tbl.get(0, col++)); -- 2.39.5