Skip to content

Commit

Permalink
Fix lint bike sheds
Browse files Browse the repository at this point in the history
  • Loading branch information
jwkohnen committed Feb 13, 2024
1 parent 02252f1 commit 9625c37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func TestScrapeError(t *testing.T) {
defer wg.Done()

start := time.Now()

resp, err := client.Do(req)
if err != nil {
t.Error(err)
Expand Down Expand Up @@ -287,10 +288,12 @@ func TestScrapeError(t *testing.T) {
timings := make([]time.Duration, concurrency)

wg := new(sync.WaitGroup)
wg.Add(concurrency)

for i := 0; i < concurrency; i++ {
i := i

wg.Add(1)

go func() {
defer wg.Done()

Expand Down Expand Up @@ -333,6 +336,7 @@ func TestScrapeError(t *testing.T) {
defer wg.Done()

start := time.Now()

resp, err := client.Do(req)
if err != nil {
t.Error(err)
Expand Down

0 comments on commit 9625c37

Please sign in to comment.