From dc815f81b3dfaadcc6e1eaec7de02e8ef48f2763 Mon Sep 17 00:00:00 2001 From: HaHaJeff Date: Sat, 10 Feb 2024 09:41:26 +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 7121acd20..b0161d42c 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