X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=xt%2Fcmp-msgview.t;h=9b06f88deade239f5257de99b96bf4eec2ed98dc;hb=21fcd8a37c82c1ef654d402cf592f0c9d803aa26;hp=66fb467eb1af12b333855099a4cc23e5d76b436f;hpb=fd966061df6a61104935984bed7c28a461a124ff;p=public-inbox.git diff --git a/xt/cmp-msgview.t b/xt/cmp-msgview.t index 66fb467e..9b06f88d 100644 --- a/xt/cmp-msgview.t +++ b/xt/cmp-msgview.t @@ -1,5 +1,5 @@ #!perl -w -# Copyright (C) 2020 all contributors +# Copyright (C) 2020-2021 all contributors # License: AGPL-3.0+ 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 => '../', @@ -77,7 +77,6 @@ my $git_cb = sub { is_deeply($eml_cmp, $mime_cmp, "$inboxdir $oid match"); } }; -$git->cat_async_begin; my $t = timeit(1, sub { while (<$fh>) { my ($oid, $type) = split / /; @@ -85,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');