Skip to content

Commit 07eff9f

Browse files
committed
fix test
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
1 parent 6a1ece6 commit 07eff9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration/e2e/service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/go-kit/log"
1616
"github.com/pkg/errors"
1717
"github.com/prometheus/common/expfmt"
18+
"github.com/prometheus/common/model"
1819
"github.com/thanos-io/thanos/pkg/runutil"
1920

2021
"github.com/cortexproject/cortex/pkg/util/backoff"
@@ -623,7 +624,7 @@ func (s *HTTPService) SumMetrics(metricNames []string, opts ...MetricsOption) ([
623624
return nil, err
624625
}
625626

626-
var tp expfmt.TextParser
627+
tp := expfmt.NewTextParser(model.UTF8Validation)
627628
families, err := tp.TextToMetricFamilies(strings.NewReader(metrics))
628629
if err != nil {
629630
return nil, err

0 commit comments

Comments
 (0)