Skip to content

Commit

Permalink
fix: disable http.Get error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kkweon committed Jun 3, 2021
1 parent f35c14a commit e6fa7dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/middlewares/metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func TestNewPrometheusServer(t *testing.T) {
ts := httptest.NewServer(promServer.Mux)
defer ts.Close()

// nolint: noctx
res, err := http.Get(ts.URL + "/metrics")
assert.NoError(t, err)

Expand Down

0 comments on commit e6fa7dd

Please sign in to comment.