]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/msgtime_cmp.t
pop3: reduce memory use while generating the mailbox cache
[public-inbox.git] / xt / msgtime_cmp.t
index 0ce3c042217ddbf74dab648cd31b235265d347aa..a7ef5245bd8de4f37343578fcf28d73ed11d7cb9 100644 (file)
@@ -1,5 +1,5 @@
 #!perl -w
-# Copyright (C) 2019-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2019-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;
@@ -62,9 +62,9 @@ my $fh = $git->popen(@cat);
 while (<$fh>) {
        my ($oid, $type) = split / /;
        next if $type ne 'blob';
-       $git->cat_async($oid, *compare);
+       $git->cat_async($oid, \&compare);
 }
-$git->cat_async_wait;
+$git->async_wait_all;
 ok(1);
 done_testing;