Skip to content

Commit

Permalink
fix e2e - update deprecated field (dapr#8183)
Browse files Browse the repository at this point in the history
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
  • Loading branch information
cicoyle authored Oct 9, 2024
1 parent 88bcdf2 commit 3d35d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func testMetricDisabled(t *testing.T, app string, res *http.Response) {

func findHTTPMetricFromPrometheus(t *testing.T, app string, res *http.Response) (foundMetric bool) {
rfmt := expfmt.ResponseFormat(res.Header)
require.NotEqual(t, rfmt, expfmt.FmtUnknown)
require.NotEqual(t, rfmt, expfmt.TypeUnknown)

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

Expand Down Expand Up @@ -277,7 +277,7 @@ func testGRPCMetrics(t *testing.T, app string, res *http.Response) {
require.NotNil(t, res)

rfmt := expfmt.ResponseFormat(res.Header)
require.NotEqual(t, rfmt, expfmt.FmtUnknown)
require.NotEqual(t, rfmt, expfmt.TypeUnknown)

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

Expand Down

0 comments on commit 3d35d28

Please sign in to comment.