From a4fb4f6bd8baae107d10e4d0bb1b7a98696d6adb Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 17 Apr 2024 11:42:35 -0300 Subject: [PATCH] Stop proservices before require clauses in test --- windows-agent/internal/proservices/proservices_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/windows-agent/internal/proservices/proservices_test.go b/windows-agent/internal/proservices/proservices_test.go index 5f8b67036..fc81e47a4 100644 --- a/windows-agent/internal/proservices/proservices_test.go +++ b/windows-agent/internal/proservices/proservices_test.go @@ -83,6 +83,7 @@ func TestNew(t *testing.T) { } s, err := proservices.New(ctx, publicDir, privateDir, proservices.WithRegistry(reg)) + defer s.Stop(ctx) if tc.wantErr { require.Error(t, err, "New should return an error") return