Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robskillington committed May 31, 2022
1 parent 2ea35e4 commit 501933c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/dbnode/integration/graphite_find_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

// Copyright (c) 2021 Uber Technologies, Inc.
Expand All @@ -23,9 +24,9 @@
package integration

import (
"crypto/rand"
"encoding/json"
"fmt"
"math/rand"
"net/http"
"net/url"
"reflect"
Expand Down Expand Up @@ -270,7 +271,8 @@ local:
url := fmt.Sprintf("http://%s%s?%s", setup.QueryAddress(),
graphitehandler.FindURL, params.Encode())

req, err := http.NewRequest(http.MethodGet, url, nil)
req, err := http.NewRequestWithContext(context.Background(),
http.MethodGet, url, nil)
require.NoError(t, err)

res, err := httpClient.Do(req)
Expand Down
4 changes: 2 additions & 2 deletions src/dbnode/integration/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,8 @@ func (ts *testSetup) StartQuery(configYAML string) error {
return fmt.Errorf("dbnode admin client not set")
}

configFile, close := newTestFile(ts.t, "config.yaml", configYAML)
defer close()
configFile, cleanup := newTestFile(ts.t, "config.yaml", configYAML)
defer cleanup()

var cfg queryconfig.Configuration
err := xconfig.LoadFile(&cfg, configFile.Name(), xconfig.Options{})
Expand Down

0 comments on commit 501933c

Please sign in to comment.