mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-09 05:06:38 +10:00
Fix tests after metrics comment changes.
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ func Test_clockTimeSeconds(t *testing.T) {
|
||||
metricName: "certmanager_clock_time_seconds",
|
||||
metric: m.clockTimeSeconds,
|
||||
expected: fmt.Sprintf(`
|
||||
# HELP certmanager_clock_time_seconds The clock time given in seconds (from 1970/01/01 UTC).
|
||||
# HELP certmanager_clock_time_seconds DEPRECATED: use clock_time_seconds_gauge instead. The clock time given in seconds (from 1970/01/01 UTC).
|
||||
# TYPE certmanager_clock_time_seconds counter
|
||||
certmanager_clock_time_seconds %f
|
||||
`, float64(fixedClock.Now().Unix())),
|
||||
|
||||
@@ -45,7 +45,7 @@ import (
|
||||
var (
|
||||
fixedClock = fakeclock.NewFakeClock(time.Date(2006, 1, 2, 15, 4, 5, 0, time.UTC))
|
||||
|
||||
clockCounterMetric = fmt.Sprintf(`# HELP certmanager_clock_time_seconds The clock time given in seconds (from 1970/01/01 UTC).
|
||||
clockCounterMetric = fmt.Sprintf(`# HELP certmanager_clock_time_seconds DEPRECATED: use clock_time_seconds_gauge instead. The clock time given in seconds (from 1970/01/01 UTC).
|
||||
# TYPE certmanager_clock_time_seconds counter
|
||||
certmanager_clock_time_seconds %.9e`, float64(fixedClock.Now().Unix()))
|
||||
clockGaugeMetric = fmt.Sprintf(`
|
||||
|
||||
Reference in New Issue
Block a user