Skip to content

Commit

Permalink
unbroke test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarin committed Jul 18, 2024
1 parent c7a83f1 commit 8f7e7a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/queue_runner.t
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit 8f7e7a5

Please sign in to comment.