From 7590dfe56a4144dd2d87389018a018a9c158898a Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Thu, 28 Sep 2023 15:13:54 +0100 Subject: [PATCH] test: ensure the test case TestCtlV3ConsistentMemberList to be more robust forcibly restart the etcd process to persist all data Signed-off-by: Benjamin Wang --- tests/e2e/ctl_v3_member_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/ctl_v3_member_test.go b/tests/e2e/ctl_v3_member_test.go index ece5308a07a2..85ba90c6fc11 100644 --- a/tests/e2e/ctl_v3_member_test.go +++ b/tests/e2e/ctl_v3_member_test.go @@ -79,6 +79,10 @@ func TestCtlV3ConsistentMemberList(t *testing.T) { require.NoError(t, err) t.Logf("Added and then removed a learner with ID: %x", resp.Member.ID) + t.Log("Restarting the etcd process to ensure all data is persisted") + err = epc.Procs[0].Restart(context.TODO()) + require.NoError(t, err) + var wg sync.WaitGroup wg.Add(2) stopc := make(chan struct{}, 2)