Fix issue with incorrect method signature on test.

This commit is contained in:
Derek Menteer 2022-10-14 10:16:20 -05:00 committed by Derek Menteer
parent bbf6b17e44
commit 25d3d244f0
1 changed files with 2 additions and 2 deletions

View File

@ -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)