Skip to content

Commit 6d75da8

Browse files
committed
correct http_test expectations
1 parent af1fe4c commit 6d75da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus/promhttp/http_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ func TestHandlerErrorHandling(t *testing.T) {
128128
t.Fatalf("unexpected number of done invokes, want 0, got %d", got)
129129
}
130130

131-
wantMsg := `error gathering metrics: error collecting metric Desc{fqName: "invalid_metric", help: "not helpful", constLabels: {}, variableLabels: {}}: collect error
131+
wantMsg := `error gathering metrics: error collecting metric Desc{fqName: "invalid_metric", help: "not helpful", unit: "", constLabels: {}, variableLabels: {}}: collect error
132132
`
133133
wantErrorBody := `An error has occurred while serving metrics:
134134
135-
error collecting metric Desc{fqName: "invalid_metric", help: "not helpful", constLabels: {}, variableLabels: {}}: collect error
135+
error collecting metric Desc{fqName: "invalid_metric", help: "not helpful", unit: "", constLabels: {}, variableLabels: {}}: collect error
136136
`
137137
wantOKBody1 := `# HELP name docstring
138138
# TYPE name counter

0 commit comments

Comments
 (0)