From 747b6e69bb6ed3ee34e90866f8a2c8513d26d6eb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 13 Sep 2020 23:59:24 +0800 Subject: [PATCH] test/crimson: use ASSERT_EQ() for verify critial results the following EXPECT_EQ() statements actually depends on this test. Signed-off-by: Kefu Chai --- src/test/crimson/seastore/test_extmap_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/crimson/seastore/test_extmap_manager.cc b/src/test/crimson/seastore/test_extmap_manager.cc index 5018170a9b57e..9722bc5f74658 100644 --- a/src/test/crimson/seastore/test_extmap_manager.cc +++ b/src/test/crimson/seastore/test_extmap_manager.cc @@ -110,7 +110,7 @@ struct extentmap_manager_test_t : public seastar_test_suite_t { void check_mappings(extmap_root_t &extmap_root, Transaction &t) { for (const auto& [lo, ext]: test_ext_mappings){ const auto ext_list = find_extent(extmap_root, t, lo, ext.length); - EXPECT_EQ(ext_list.size(), 1); + ASSERT_EQ(ext_list.size(), 1); const auto& ext_map = ext_list.front(); EXPECT_EQ(ext.laddr, ext_map.laddr); EXPECT_EQ(ext.length, ext_map.length); -- 2.39.5