agent: remove deprecated call in a test

This commit is contained in:
Daniel Nephin 2021-06-09 12:18:18 -04:00
parent 9d471269d8
commit c3c8058fd7
1 changed files with 7 additions and 1 deletions

View File

@ -448,7 +448,13 @@ func TestServiceManager_PersistService_API(t *testing.T) {
// Updates service definition on disk
svc = newNodeService()
svc.Proxy.LocalServicePort = 8001
require.NoError(a.addServiceFromSource(svc, nil, true, "mytoken", ConfigSourceRemote))
err = a.AddService(AddServiceRequest{
Service: svc,
persist: true,
token: "mytoken",
Source: ConfigSourceRemote,
})
require.NoError(err)
requireFileIsPresent(t, svcFile)
requireFileIsPresent(t, configFile)