Skip to content

Commit 5e75e16

Browse files
filintoddapr-bot
andauthored
correct e2e format type (dapr#8440)
Signed-off-by: Filinto Duran <[email protected]> Co-authored-by: Dapr Bot <[email protected]>
1 parent fbce56e commit 5e75e16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/metrics/metrics_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func testMetricDisabled(t *testing.T, app string, res *http.Response) {
194194

195195
func findHTTPMetricFromPrometheus(t *testing.T, app string, res *http.Response) (foundMetric bool) {
196196
rfmt := expfmt.ResponseFormat(res.Header)
197-
require.NotEqual(t, rfmt, expfmt.TypeUnknown)
197+
require.NotEqual(t, rfmt.FormatType(), expfmt.TypeUnknown)
198198

199199
decoder := expfmt.NewDecoder(res.Body, rfmt)
200200

@@ -276,7 +276,7 @@ func testGRPCMetrics(t *testing.T, app string, res *http.Response) {
276276
require.NotNil(t, res)
277277

278278
rfmt := expfmt.ResponseFormat(res.Header)
279-
require.NotEqual(t, rfmt, expfmt.TypeUnknown)
279+
require.NotEqual(t, rfmt.FormatType(), expfmt.TypeUnknown)
280280

281281
decoder := expfmt.NewDecoder(res.Body, rfmt)
282282

0 commit comments

Comments
 (0)