From 2a33d0ff962a097530c3194fc0daa11223bffd79 Mon Sep 17 00:00:00 2001 From: Derek Menteer Date: Fri, 14 Oct 2022 10:16:20 -0500 Subject: [PATCH] Fix issue with incorrect method signature on test. --- agent/consul/state/peering_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/consul/state/peering_test.go b/agent/consul/state/peering_test.go index 5cb1180752..8e35bdb857 100644 --- a/agent/consul/state/peering_test.go +++ b/agent/consul/state/peering_test.go @@ -1712,7 +1712,7 @@ func TestStateStore_ExportedServicesForAllPeersByName(t *testing.T) { ws := memdb.NewWatchSet() testutil.RunStep(t, "no exported services", func(t *testing.T) { expect := map[string]structs.ServiceList{} - idx, got, err := s.ExportedServicesForAllPeersByName(ws, *defaultEntMeta) + idx, got, err := s.ExportedServicesForAllPeersByName(ws, "dc1", *defaultEntMeta) require.NoError(t, err) require.Equal(t, lastIdx, idx) require.Equal(t, expect, got) @@ -1754,7 +1754,7 @@ func TestStateStore_ExportedServicesForAllPeersByName(t *testing.T) { structs.NewServiceName("mongo", defaultEntMeta), }, } - idx, got, err := s.ExportedServicesForAllPeersByName(nil, *defaultEntMeta) + idx, got, err := s.ExportedServicesForAllPeersByName(nil, "dc1", *defaultEntMeta) require.NoError(t, err) require.Equal(t, lastIdx, idx) require.Equal(t, expect, got)