Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Nov 21, 2023
1 parent e15f995 commit 6d4f87e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/pkg/server/remote_es_output_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ func Test_Agent_Remote_ES_Output(t *testing.T) {

ftesting.Retry(t, ctx, func(ctx context.Context) error {
requestURL := fmt.Sprintf("http://elastic:changeme@%s/_security/api_key?id=%s", remoteESHost, apiKeyID)
res, err := http.Get(requestURL)

req, err := http.NewRequestWithContext(ctx, http.MethodGet, requestURL, nil)
if err != nil {
t.Fatal("error creating request for remote api key")
}
res, err := http.DefaultClient.Do(req)
if err != nil {
t.Fatal("error querying remote api key")
}
Expand Down

0 comments on commit 6d4f87e

Please sign in to comment.