Matthew Holt
3 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
2 additions and
2 deletions
-
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) |
|
|
|