diff options
author | Matthew Holt <[email protected]> | 2021-10-27 13:44:46 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2021-10-27 13:44:46 -0600 |
commit | 3385856966dc03e438d6aef58db7dcb370d4b045 (patch) | |
tree | 95fc1ab0cb364beadc465fbcb579c14d40e6bf30 /modules/caddyhttp/metrics_test.go | |
parent | f73f55dba745a8a527202b87fdd3ff88fa9f40b1 (diff) | |
download | caddy-3385856966dc03e438d6aef58db7dcb370d4b045.tar.gz caddy-3385856966dc03e438d6aef58db7dcb370d4b045.zip |
Fix lint message in metrics tests
Diffstat (limited to 'modules/caddyhttp/metrics_test.go')
-rw-r--r-- | modules/caddyhttp/metrics_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/metrics_test.go b/modules/caddyhttp/metrics_test.go index 72f29a707..6311935ae 100644 --- a/modules/caddyhttp/metrics_test.go +++ b/modules/caddyhttp/metrics_test.go @@ -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 @@ -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) |