Skip to content

Commit

Permalink
Fix lint message in metrics tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Oct 27, 2021
1 parent f73f55d commit 3385856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/caddyhttp/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestMetricsInstrumentedHandler(t *testing.T) {

handlerErr = nil
if err := ih.ServeHTTP(w, r, h); err != nil {
t.Errorf("Received unexpected error: %w", err)
t.Errorf("Received unexpected error: %v", err)
}

// an empty handler - no errors, no header written
Expand All @@ -67,7 +67,7 @@ func TestMetricsInstrumentedHandler(t *testing.T) {
w = httptest.NewRecorder()

if err := ih.ServeHTTP(w, r, h); err != nil {
t.Errorf("Received unexpected error: %w", err)
t.Errorf("Received unexpected error: %v", err)
}
if actual := w.Result().StatusCode; actual != 200 {
t.Errorf("Not same: expected status code %#v, but got %#v", 200, actual)
Expand Down

0 comments on commit 3385856

Please sign in to comment.