From 7bfd624badfccff7aba53e7d86ecc6cc3efec35e Mon Sep 17 00:00:00 2001 From: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Date: Thu, 12 Sep 2024 08:37:33 -0700 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Paolo ChilĂ  Co-authored-by: Andrzej Stencel --- pkg/testing/fixture_install.go | 2 +- testing/integration/proxy_url_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/testing/fixture_install.go b/pkg/testing/fixture_install.go index 03574a6a658..f2e4511e4a3 100644 --- a/pkg/testing/fixture_install.go +++ b/pkg/testing/fixture_install.go @@ -238,7 +238,7 @@ func (f *Fixture) installNoPkgManager(ctx context.Context, installOpts *InstallO f.setClient(c) f.t.Cleanup(func() { - f.DumpProcesses("-pre-uninstall") + f.DumpProcesses("-post-uninstall") }) f.t.Cleanup(func() { diff --git a/testing/integration/proxy_url_test.go b/testing/integration/proxy_url_test.go index 2318947b712..78798d44572 100644 --- a/testing/integration/proxy_url_test.go +++ b/testing/integration/proxy_url_test.go @@ -733,8 +733,8 @@ func TestProxyURL(t *testing.T) { Key: args.key, }}) t.Logf("elastic-agent install output: \n%s\n", string(out)) - for proxy, p := range proxies { - t.Logf("Proxy %s requests: %v", proxy, p.ProxiedRequests()) + for proxyName, proxy := range proxies { + t.Logf("Proxy %s requests: %v", proxyName, proxy.ProxiedRequests()) } if tt.wantErr(t, err, "elastic-agent install returned an unexpected error") { tt.assertFunc(ctx, t, fixture, proxies, mockFleet)