Skip to content

Commit 5df19dd

Browse files
committed
metrics: Fix metrics test to match simpler DNS error label
1 parent 658fd0b commit 5df19dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/s3/s3_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func TestMetrics(t *testing.T) {
103103
_, err = bBadHost.List(context.Background(), "")
104104
assert.Error(t, err)
105105

106-
expectedMetric += "storage_s3_call_error_by_type_total{error=\"lookup nosuchhost: no such host\",method=\"list\"} 1\n"
106+
expectedMetric += "storage_s3_call_error_by_type_total{error=\"DNSError\",method=\"list\"} 1\n"
107107

108108
err = testutil.CollectAndCompare(metricCallErrorsType, strings.NewReader(expectedMetric), "storage_s3_call_error_by_type_total")
109109
assert.NoError(t, err)

0 commit comments

Comments
 (0)