Skip to content

Commit 6bc8b6c

Browse files
committed
Revert "chore: fix outdated tests"
This reverts commit 047d53c.
1 parent c4497f4 commit 6bc8b6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/exporter_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ func TestFolder(t *testing.T) {
140140
Directories: []string{path.Join(filepath.Dir(filename), "../test")},
141141
}, func(metrics []model.MetricFamily) {
142142
foundMetrics := getMetricsForName(metrics, "x509_cert_expired")
143-
assert.Len(t, foundMetrics, 6, "missing x509_cert_expired metric(s)")
143+
assert.Len(t, foundMetrics, 5, "missing x509_cert_expired metric(s)")
144144

145145
foundNbMetrics := getMetricsForName(metrics, "x509_cert_not_before")
146-
assert.Len(t, foundNbMetrics, 6, "missing x509_cert_not_before metric(s)")
146+
assert.Len(t, foundNbMetrics, 5, "missing x509_cert_not_before metric(s)")
147147

148148
foundNaMetrics := getMetricsForName(metrics, "x509_cert_not_after")
149-
assert.Len(t, foundNaMetrics, 6, "missing x509_cert_not_after metric(s)")
149+
assert.Len(t, foundNaMetrics, 5, "missing x509_cert_not_after metric(s)")
150150
})
151151
}
152152

0 commit comments

Comments
 (0)