From 3155b2f02ceb73c2a724beef14fb05467927e0d6 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Fri, 22 Nov 2024 14:29:53 -0600 Subject: [PATCH] remove use of Raft.CommitIndex from test --- agent/consul/internal_endpoint_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/agent/consul/internal_endpoint_test.go b/agent/consul/internal_endpoint_test.go index 2a46c85e25..3c73f31c17 100644 --- a/agent/consul/internal_endpoint_test.go +++ b/agent/consul/internal_endpoint_test.go @@ -3899,15 +3899,12 @@ func TestInternal_AssignManualServiceVIPs(t *testing.T) { } var resp structs.AssignServiceManualVIPsResponse - idx1 := s1.raft.CommitIndex() err := msgpackrpc.CallWithCodec(codec, "Internal.AssignManualServiceVIPs", tc.req, &resp) - idx2 := s1.raft.CommitIndex() if tc.expectErr != "" { testutil.RequireErrorContains(t, err, tc.expectErr) } else { if again { require.Equal(t, tc.expectAgain, resp) - require.Equal(t, idx1, idx2, "no raft operations occurred") } else { require.Equal(t, tc.expect, resp) }