Fix api/agent test

This commit is contained in:
Evan Culver 2021-07-15 16:54:57 -07:00
parent 718a6a9a12
commit f917372f0a
No known key found for this signature in database
GPG Key ID: 3BBE9838C95315C7
1 changed files with 5 additions and 1 deletions

View File

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