diff --git a/src/lib/homestore_backend/tests/homeobj_fixture.hpp b/src/lib/homestore_backend/tests/homeobj_fixture.hpp index 6edd6f7c..c0f3bb66 100644 --- a/src/lib/homestore_backend/tests/homeobj_fixture.hpp +++ b/src/lib/homestore_backend/tests/homeobj_fixture.hpp @@ -36,10 +36,8 @@ class HomeObjectFixture : public ::testing::Test { HomeObjectFixture() : rand_blob_size{1u, 16 * 1024}, rand_user_key_size{1u, 1024} {} void SetUp() override { - g_helper->sync(); _obj_inst = std::dynamic_pointer_cast< HSHomeObject >(g_helper->build_new_homeobject()); - // wait for leader to be elected - std::this_thread::sleep_for(std::chrono::seconds(5)); + g_helper->sync(); } void TearDown() override {