diff --git a/cloud/tq/tq_test.go b/cloud/tq/tq_test.go index aab68c0e..43e29c00 100644 --- a/cloud/tq/tq_test.go +++ b/cloud/tq/tq_test.go @@ -4,10 +4,9 @@ import ( "log" "testing" - "github.com/m-lab/go/prometheusx" - "github.com/m-lab/etl-gardener/cloud" "github.com/m-lab/etl-gardener/cloud/tq" + "github.com/m-lab/go/prometheusx/promtest" ) func init() { @@ -33,5 +32,5 @@ func TestPostOneTask(t *testing.T) { func TestMetrics(t *testing.T) { tq.EmptyStatsRecoveryTimeHistogramSecs.WithLabelValues("x") - prometheusx.LintMetrics(t) + promtest.LintMetrics(t) } diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go index e5bbaa04..e1ee1c5d 100644 --- a/metrics/metrics_test.go +++ b/metrics/metrics_test.go @@ -3,7 +3,7 @@ package metrics import ( "testing" - "github.com/m-lab/go/prometheusx" + "github.com/m-lab/go/prometheusx/promtest" ) func TestLintMetrics(t *testing.T) { @@ -16,5 +16,5 @@ func TestLintMetrics(t *testing.T) { StateTimeHistogram.WithLabelValues("x") FilesPerDateHistogram.WithLabelValues("x") BytesPerDateHistogram.WithLabelValues("x") - prometheusx.LintMetrics(t) + promtest.LintMetrics(t) }