]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/cmp-msgview.t
pop3: reduce memory use while generating the mailbox cache
[public-inbox.git] / xt / cmp-msgview.t
index 5bd7aa174df0c786fcd16978a022e3d72e1728bb..9b06f88deade239f5257de99b96bf4eec2ed98dc 100644 (file)
@@ -1,5 +1,5 @@
 #!perl -w
-# Copyright (C) 2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use Test::More;
@@ -24,7 +24,7 @@ vec(my $vec = '', fileno($fh), 1) = 1;
 select($vec, undef, undef, 60) or die "timed out waiting for --batch-check";
 my $mime_ctx = {
        env => { HTTP_HOST => 'example.com', 'psgi.url_scheme' => 'https' },
-       -inbox => $ibx,
+       ibx => $ibx,
        www => Plack::Util::inline_object(style => sub {''}),
        obuf => \(my $mime_buf = ''),
        mhref => '../',
@@ -84,7 +84,7 @@ my $t = timeit(1, sub {
                ++$n;
                $git->cat_async($oid, $git_cb);
        }
-       $git->cat_async_wait;
+       $git->async_wait_all;
 });
 is($m, $n, 'rendered all messages');