Skip to content

Commit

Permalink
Revert "chore: fix outdated tests"
Browse files Browse the repository at this point in the history
This reverts commit 047d53c.
  • Loading branch information
arcln committed May 17, 2023
1 parent c4497f4 commit 6bc8b6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ func TestFolder(t *testing.T) {
Directories: []string{path.Join(filepath.Dir(filename), "../test")},
}, func(metrics []model.MetricFamily) {
foundMetrics := getMetricsForName(metrics, "x509_cert_expired")
assert.Len(t, foundMetrics, 6, "missing x509_cert_expired metric(s)")
assert.Len(t, foundMetrics, 5, "missing x509_cert_expired metric(s)")

foundNbMetrics := getMetricsForName(metrics, "x509_cert_not_before")
assert.Len(t, foundNbMetrics, 6, "missing x509_cert_not_before metric(s)")
assert.Len(t, foundNbMetrics, 5, "missing x509_cert_not_before metric(s)")

foundNaMetrics := getMetricsForName(metrics, "x509_cert_not_after")
assert.Len(t, foundNaMetrics, 6, "missing x509_cert_not_after metric(s)")
assert.Len(t, foundNaMetrics, 5, "missing x509_cert_not_after metric(s)")
})
}

Expand Down

0 comments on commit 6bc8b6c

Please sign in to comment.