Skip to content

Commit

Permalink
Reset model.NameValidationScheme to model.LegacyValidation as this wa…
Browse files Browse the repository at this point in the history
…s affecting other tests and Mimir doesn't support Prometheus' UTF-8 metric/label name scheme yet.
  • Loading branch information
tinitiuset committed Dec 19, 2024
1 parent 5d58855 commit 2969331
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/querier/stats_renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package querier
import (
"context"
"fmt"
"github.com/prometheus/common/model"
"net/http"
"net/http/httptest"
"testing"
Expand All @@ -25,6 +26,11 @@ import (
mimir_stats "github.com/grafana/mimir/pkg/querier/stats"
)

// Mimir doesn't support Prometheus' UTF-8 metric/label name scheme yet.
func init() {
model.NameValidationScheme = model.LegacyValidation
}

func TestStatsRenderer(t *testing.T) {

testCases := map[string]struct {
Expand Down

0 comments on commit 2969331

Please sign in to comment.