From b39418f3137c86228298730eea4a917aa1ddc870 Mon Sep 17 00:00:00 2001 From: Yaming Kuang Date: Wed, 28 Feb 2024 14:02:54 -0700 Subject: [PATCH] enable commeted out test case --- src/tests/test_raft_repl_dev.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests/test_raft_repl_dev.cpp b/src/tests/test_raft_repl_dev.cpp index a7e71c96c..a80d03c81 100644 --- a/src/tests/test_raft_repl_dev.cpp +++ b/src/tests/test_raft_repl_dev.cpp @@ -273,7 +273,7 @@ class RaftReplDevTest : public testing::Test { flip::FlipClient m_fc{iomgr_flip::instance()}; #endif }; -#if 0 + TEST_F(RaftReplDevTest, All_Append_Restart_Append) { LOGINFO("Homestore replica={} setup completed", g_helper->replica_num()); @@ -453,8 +453,7 @@ TEST_F(RaftReplDevTest, All_restart_one_follower_inc_resync_with_staging) { this->validate_all_data(); g_helper->sync_for_cleanup_start(); } -#endif -#if 1 + // do some io before restart; TEST_F(RaftReplDevTest, All_restart_leader) { LOGINFO("Homestore replica={} setup completed", g_helper->replica_num()); @@ -513,7 +512,7 @@ TEST_F(RaftReplDevTest, All_restart_leader) { this->validate_all_data(); g_helper->sync_for_cleanup_start(); } -#endif + // TODO // double restart: // 1. restart one follower(F1) while I/O keep running.