Skip to content

Commit

Permalink
test/osd: Use get_data() to simplify calls
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Hubbard <[email protected]>
  • Loading branch information
badone committed Feb 19, 2021
1 parent 0c2164c commit ebb4a82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/osd/TestOSDMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1929,17 +1929,17 @@ TEST_F(OSDMapTest, BUG_48884)
JSONParser parser2;
parser2.parse(bucket.c_str(), static_cast<int>(bucket.size()));
auto* obj = parser2.find_obj("name");
if (obj->get_data_val().str.compare("localrack") == 0) {
if (obj->get_data().compare("localrack") == 0) {
obj = parser2.find_obj("kb");
ASSERT_EQ(obj->get_data_val().str, "3904");
ASSERT_EQ(obj->get_data(), "3904");
obj = parser2.find_obj("kb_used");
ASSERT_EQ(obj->get_data_val().str, "3512");
ASSERT_EQ(obj->get_data(), "3512");
obj = parser2.find_obj("kb_used_omap");
ASSERT_EQ(obj->get_data_val().str, "384");
ASSERT_EQ(obj->get_data(), "384");
obj = parser2.find_obj("kb_used_meta");
ASSERT_EQ(obj->get_data_val().str, "384");
ASSERT_EQ(obj->get_data(), "384");
obj = parser2.find_obj("kb_avail");
ASSERT_EQ(obj->get_data_val().str, "384");
ASSERT_EQ(obj->get_data(), "384");
}
}
}

0 comments on commit ebb4a82

Please sign in to comment.