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 }