X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=xt%2Feml_check_limits.t;h=a6d010af0518f3f8866eebf0ee018bd336147f44;hb=44812cbbec44625083b6e5441a798a21a5e79f71;hp=2d632799956730bbb124b1795921259d3e490fce;hpb=eeeae20893a2595631359e719eadac9686572734;p=public-inbox.git diff --git a/xt/eml_check_limits.t b/xt/eml_check_limits.t index 2d632799..a6d010af 100644 --- a/xt/eml_check_limits.t +++ b/xt/eml_check_limits.t @@ -1,6 +1,8 @@ #!perl -w -# Copyright (C) 2020 all contributors +# Copyright (C) 2020-2021 all contributors # License: AGPL-3.0+ +use strict; +use v5.10.1; use Test::More; use PublicInbox::TestCommon; use PublicInbox::Eml; @@ -13,7 +15,10 @@ require_git(2.19); # for --unordered require_mods(qw(BSD::Resource)); BSD::Resource->import(qw(getrusage)); my $cls = $ENV{TEST_CLASS}; -require_mods($cls) if $cls; +if ($cls) { + diag "TEST_CLASS=$cls"; + require_mods($cls); +} $cls //= 'PublicInbox::Eml'; my $inboxdir = $ENV{GIANT_INBOX_DIR}; plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless $inboxdir; @@ -62,7 +67,7 @@ my $t = timeit(1, sub { ++$n; $git->cat_async($blob, $cat_cb); } - $git->cat_async_wait; + $git->async_wait_all; }); is($m, $n, 'scanned all messages'); diag "$$ $inboxdir took ".timestr($t)." for $n <=> $m messages";