mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
Fix lint message in metrics tests
This commit is contained in:
parent
f73f55dba7
commit
3385856966
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue