From f917372f0a727fd716497178bdcdb53f96451540 Mon Sep 17 00:00:00 2001 From: Evan Culver Date: Thu, 15 Jul 2021 16:54:57 -0700 Subject: [PATCH] Fix api/agent test --- api/agent_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/agent_test.go b/api/agent_test.go index ef7cac43ea..f372d67974 100644 --- a/api/agent_test.go +++ b/api/agent_test.go @@ -618,7 +618,11 @@ func TestAPI_AgentServiceAddress(t *testing.T) { require.Equal(t, services["foo2"].TaggedAddresses["wan"].Address, "198.18.0.1") require.Equal(t, services["foo2"].TaggedAddresses["wan"].Port, 80) - if err := agent.ServiceDeregister("foo"); err != nil { + if err := agent.ServiceDeregister("foo1"); err != nil { + t.Fatalf("err: %v", err) + } + + if err := agent.ServiceDeregister("foo2"); err != nil { t.Fatalf("err: %v", err) } }