From e7a16d48a2cbea6d6905cba9d5f3d464ef35ac4f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 02:33:07 +0000 Subject: [PATCH] [UT] Fix unstable ut (backport #54463) (#54478) Co-authored-by: zhangqiang --- be/test/storage/tablet_updates_test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/be/test/storage/tablet_updates_test.cpp b/be/test/storage/tablet_updates_test.cpp index dd0ab5b8777895..4ce1969c8b7db3 100644 --- a/be/test/storage/tablet_updates_test.cpp +++ b/be/test/storage/tablet_updates_test.cpp @@ -3564,8 +3564,7 @@ TEST_F(TabletUpdatesTest, test_normal_apply_retry) { ASSERT_TRUE(_tablet->rowset_commit(version, rs).ok()); ASSERT_EQ(version, _tablet->updates()->max_version()); - // Wait for a short duration and check error state - std::this_thread::sleep_for(std::chrono::milliseconds(200)); + read_tablet(_tablet, version); ASSERT_TRUE(_tablet->updates()->is_error()); // Disable fail point and reset error