Skip to content

Commit 369cebb

Browse files
committed
fix tests
Signed-off-by: Owen Williams <owen.williams@grafana.com>
1 parent b459db3 commit 369cebb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

expfmt/encode_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ foo_metric{dotted_label_name="my.label.value"} 8
427427
}
428428

429429
func TestDottedEncode(t *testing.T) {
430+
//nolint:staticcheck
431+
model.NameValidationScheme = model.UTF8Validation
430432
metric := &dto.MetricFamily{
431433
Name: proto.String("foo.metric"),
432434
Type: dto.MetricType_COUNTER.Enum(),

0 commit comments

Comments
 (0)