Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten committed Aug 24, 2023
1 parent 7b4b54c commit 683f119
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions receiver/zookeeperreceiver/scraper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ func TestZookeeperMetricsScraperScrape(t *testing.T) {
require.NoError(t, err)
require.Equal(t, "zookeeper", z.Name())

ctx := context.Background()

if tt.setConnectionDeadline != nil {
z.setConnectionDeadline = tt.setConnectionDeadline
}
Expand All @@ -301,7 +299,7 @@ func TestZookeeperMetricsScraperScrape(t *testing.T) {
if tt.sendCmd != nil {
z.sendCmd = tt.sendCmd
}

ctx, _ := context.WithTimeout(context.Background(), z.config.Timeout)
actualMetrics, err := z.scrape(ctx)
require.NoError(t, z.shutdown(ctx))

Expand Down

0 comments on commit 683f119

Please sign in to comment.