diff --git a/testing/integration/log_level_test.go b/testing/integration/log_level_test.go index e3d21a71880..4e1dc6940bd 100644 --- a/testing/integration/log_level_test.go +++ b/testing/integration/log_level_test.go @@ -54,22 +54,6 @@ func TestSetLogLevelFleetManaged(t *testing.T) { fleetServerURL, err := fleettools.DefaultURL(ctx, info.KibanaClient) require.NoError(t, err, "failed getting Fleet Server URL") - //cmd, err := f.PrepareAgentCommand(ctx, nil) - //if err != nil { - // t.Fatalf("cannot prepare Elastic-Agent command: %s", err) - //} - // - //output := strings.Builder{} - //cmd.Stderr = &output - //cmd.Stdout = &output - // - //if err = cmd.Start(); err != nil { - // t.Fatalf("could not start Elastic-Agent: %s", err) - //} - // - //out, err := f.Exec(ctx, []string{"enroll", "--url", fleetServerURL, "--enrollment-token", enrollmentTokenResp.APIKey}) - //require.NoErrorf(t, err, "error enrolling agent. Enroll command output:\n%s\n", string(out)) - installOutput, err := f.Install(ctx, &atesting.InstallOpts{ NonInteractive: true, Force: true, @@ -89,18 +73,6 @@ func TestSetLogLevelFleetManaged(t *testing.T) { agentID, err := getAgentID(ctx, f) require.NoError(t, err, "error getting the agent ID") - // Make sure the Elastic-Agent process is not running before - // exiting the test - //t.Cleanup(func() { - // // Ignore the error because we cancelled the context, - // // and that always returns an error - // _ = cmd.Wait() - // if t.Failed() { - // t.Log("Elastic-Agent output:") - // t.Log(output.String()) - // } - //}) - testLogLevelSetViaFleet(ctx, f, agentID, t, info, policyResp) }