diff --git a/internal/metrics/routes.go b/internal/metrics/handlers.go similarity index 100% rename from internal/metrics/routes.go rename to internal/metrics/handlers.go diff --git a/internal/metrics/routes_test.go b/internal/metrics/handlers_test.go similarity index 97% rename from internal/metrics/routes_test.go rename to internal/metrics/handlers_test.go index 6d4af432..602d4dfb 100644 --- a/internal/metrics/routes_test.go +++ b/internal/metrics/handlers_test.go @@ -24,7 +24,7 @@ func TestInvalidEvent(t *testing.T) { func TestInvalidMethod(t *testing.T) { rr := testMetricUIEvent(t, http.MethodGet, "", map[string]string{}) - assert.Equal(t, http.StatusMethodNotAllowed, rr.Code) + assert.Equal(t, http.StatusNotFound, rr.Code) } func TestTimeToStartEvent(t *testing.T) {