From e131f6404a7672684b775ba0fd0fb2987c3df2c6 Mon Sep 17 00:00:00 2001 From: HaHaJeff Date: Mon, 5 Feb 2024 03:26:15 +0000 Subject: [PATCH] fixed print error log after delete block success on arb server --- unittest/logservice/test_palf_env_lite_mgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittest/logservice/test_palf_env_lite_mgr.cpp b/unittest/logservice/test_palf_env_lite_mgr.cpp index 7121acd20e..b0161d42c5 100644 --- a/unittest/logservice/test_palf_env_lite_mgr.cpp +++ b/unittest/logservice/test_palf_env_lite_mgr.cpp @@ -95,7 +95,8 @@ TEST(TestPalfEnvLiteMgr, test_create_block) EXPECT_EQ(OB_SUCCESS, dbp.create_block_at(dir_fd, block_path.c_str(), block_size)); EXPECT_EQ(OB_SUCCESS, dbp.create_block_at(dir_fd, block_path.c_str(), block_size)); EXPECT_EQ(OB_SUCCESS, dbp.remove_block_at(dir_fd, block_path.c_str())); - EXPECT_EQ(OB_NO_SUCH_FILE_OR_DIRECTORY, dbp.remove_block_at(dir_fd, block_path.c_str())); + // file has not exist, return OB_SUCCESS + EXPECT_EQ(OB_SUCCESS, dbp.remove_block_at(dir_fd, block_path.c_str())); } } // end of unittest