Skip to content

Commit

Permalink
Revert "chore: fix outdated tests"
Browse files Browse the repository at this point in the history
This reverts commit 06368e5.
  • Loading branch information
arcln committed May 17, 2023
1 parent ccf683c commit c4497f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,14 @@ func TestErrorMetrics(t *testing.T) {
}

assert.Len(t, errorMetric, 22, "missing x509_read_error metrics")
assert.Equal(t, 17, errors, "missing x509_read_error metrics")
assert.Equal(t, 19, errors, "missing x509_read_error metrics")
} else {
assert.Len(t, errorMetric, 0, "unexpected x509_read_error metrics")
}

errorsMetric := getMetricsForName(metrics, "x509_read_errors")
assert.Len(t, errorsMetric, 1, "missing x509_read_errors metric")
assert.Equal(t, errorsMetric[0].GetGauge().GetValue(), 17., "invalid x509_read_errors value")
assert.Equal(t, errorsMetric[0].GetGauge().GetValue(), 19., "invalid x509_read_errors value")
})
}

Expand Down

0 comments on commit c4497f4

Please sign in to comment.