From c5786498540a230e53ec1470c44df89ce52b4f62 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Sun, 26 Jan 2025 18:30:34 +0000 Subject: [PATCH] Fix addMemberAsLearnerAndPromote to avoid error 'etcdserver: can only promote a learner member' Signed-off-by: Benjamin Wang --- tests/e2e/runtime_reconfiguration_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/e2e/runtime_reconfiguration_test.go b/tests/e2e/runtime_reconfiguration_test.go index 1fde6f9489d..1736126e6a6 100644 --- a/tests/e2e/runtime_reconfiguration_test.go +++ b/tests/e2e/runtime_reconfiguration_test.go @@ -178,7 +178,6 @@ func addMemberAsLearnerAndPromote(ctx context.Context, t *testing.T, epc *e2e.Et id, err := epc.StartNewProc(ctx, nil, t, true /* addAsLearner */) require.NoError(t, err) - _, err = epc.Etcdctl(e2e.WithEndpoints(endpoints)).MemberPromote(ctx, id) attempt := 0 for attempt < 3 {