diff --git a/agent/sidecar_service_test.go b/agent/sidecar_service_test.go index 094ec0d575..12f4e2dc3c 100644 --- a/agent/sidecar_service_test.go +++ b/agent/sidecar_service_test.go @@ -322,6 +322,7 @@ func TestAgent_sidecarServiceFromNodeService(t *testing.T) { require := require.New(t) a := NewTestAgent(t, "jones", hcl) + defer a.Shutdown() if tt.preRegister != nil { err := a.AddService(tt.preRegister.NodeService(), nil, false, "", ConfigSourceLocal)