Skip to content

Commit 04147c5

Browse files
committed
Rename prom_testutil
Signed-off-by: gotjosh <[email protected]>
1 parent 538c5b0 commit 04147c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/ruler/ruler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/go-kit/kit/log"
1515
"github.com/go-kit/kit/log/level"
1616
"github.com/prometheus/client_golang/prometheus"
17-
promTU "github.com/prometheus/client_golang/prometheus/testutil"
17+
prom_testutil "github.com/prometheus/client_golang/prometheus/testutil"
1818
"github.com/prometheus/prometheus/notifier"
1919
"github.com/prometheus/prometheus/pkg/labels"
2020
"github.com/prometheus/prometheus/promql"
@@ -140,7 +140,7 @@ func TestNotifierSendsUserIDHeader(t *testing.T) {
140140
wg.Wait()
141141

142142
// Ensure we have metrics in the notifier.
143-
assert.NoError(t, promTU.GatherAndCompare(r.registry.(*prometheus.Registry), strings.NewReader(`
143+
assert.NoError(t, prom_testutil.GatherAndCompare(r.registry.(*prometheus.Registry), strings.NewReader(`
144144
# HELP cortex_prometheus_notifications_dropped_total Total number of alerts dropped due to errors when sending to Alertmanager.
145145
# TYPE cortex_prometheus_notifications_dropped_total counter
146146
cortex_prometheus_notifications_dropped_total{user="1"} 0

0 commit comments

Comments
 (0)