From a0ca381037666ded6f1a72def303fbaa62d01a24 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Wed, 9 Jun 2021 12:18:18 -0400 Subject: [PATCH] agent: remove deprecated call in a test --- agent/service_manager_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/agent/service_manager_test.go b/agent/service_manager_test.go index b6c14f7f02..f6b134593d 100644 --- a/agent/service_manager_test.go +++ b/agent/service_manager_test.go @@ -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)