diff --git a/t/queue_runner.t b/t/queue_runner.t index ba903b8e..fabeaca3 100644 --- a/t/queue_runner.t +++ b/t/queue_runner.t @@ -155,7 +155,7 @@ describe "HTFeed::QueueRunner" => sub { # Same test as the one above, except with the addition of testing # that it increments $metric. First clear the metrics. my $pack_bytes_metric = "ingest_pack_bytes_r_total"; - my $collate_metric = "ingest_collate_items"; + my $collate_metric = "ingest_collate_items_total"; my $jm = queue_runner->{job_metrics}; $jm->clear; ok($jm->get_value($collate_metric) == 0); @@ -165,7 +165,7 @@ describe "HTFeed::QueueRunner" => sub { ok(volume_in_feed_queue(testvolume('ok'), 'collated')); ok($jm->get_value($collate_metric) == 1); # Also check that at least 5 time-based metrics were incremented - my $timebased_metrics = $jm->match('^ingest_.+_seconds'); + my $timebased_metrics = $jm->match('^ingest_.+_seconds_total'); ok(scalar(@$timebased_metrics) > 5); # Also check that HTFeed::Stage::Pack incremented bytes # (it's the only stage implementing bytes so far)