X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=xt%2Fcmp-msgstr.t;h=b6c8ec659cebcee4ac7e6e62a86fcfe06b896151;hb=0ae89efce11e1e3b10a067c61c5b4cde30fa2b3b;hp=0276f8454b01d1d37948e60d7d21d14ca98dd89d;hpb=eeeae20893a2595631359e719eadac9686572734;p=public-inbox.git diff --git a/xt/cmp-msgstr.t b/xt/cmp-msgstr.t index 0276f845..b6c8ec65 100644 --- a/xt/cmp-msgstr.t +++ b/xt/cmp-msgstr.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; @@ -60,7 +60,7 @@ my $cmp = sub { my $dig = $dig_cls->new; $dig->add($part); push @$cmp_arg, "M: ".$dig->hexdigest; - push @$cmp_arg, "B: ".bytes::length($part); + push @$cmp_arg, "B: ".length($part); } else { $part =~ s/\s+\z//s; push @$cmp_arg, "X: ".$part; @@ -100,7 +100,7 @@ my $t = timeit(1, sub { ++$n; $git->cat_async($oid, $git_cb); } - $git->cat_async_wait; + $git->async_wait_all; }); is($m, $n, "$inboxdir rendered all $m <=> $n messages"); is($ndiff, 0, "$inboxdir $ndiff differences");