From 131ef2a133849c396021737db9dc585f54701b35 Mon Sep 17 00:00:00 2001 From: Derek Menteer <105233703+hashi-derek@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:57:27 -0600 Subject: [PATCH] Fix broken tests. (#20134) --- agent/consul/intention_endpoint_test.go | 2 +- agent/consul/leader_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/consul/intention_endpoint_test.go b/agent/consul/intention_endpoint_test.go index fc3edb8a7c..6296b8479f 100644 --- a/agent/consul/intention_endpoint_test.go +++ b/agent/consul/intention_endpoint_test.go @@ -759,7 +759,7 @@ func TestIntentionApply_WithoutIDs(t *testing.T) { }, RaftIndex: entry.RaftIndex, } - + entry.Hash = 0 require.Equal(t, expect, entry) } diff --git a/agent/consul/leader_test.go b/agent/consul/leader_test.go index be227ba348..0ddecb7633 100644 --- a/agent/consul/leader_test.go +++ b/agent/consul/leader_test.go @@ -1197,6 +1197,7 @@ func TestDatacenterSupportsIntentionsAsConfigEntries(t *testing.T) { if err := srv.RPC(context.Background(), "ConfigEntry.Get", &arg, &reply); err != nil { return nil, err } + reply.Entry.SetHash(0) return reply.Entry, nil }