]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/cmp-msgstr.t
xt: add fsck script over over.sqlite3
[public-inbox.git] / xt / cmp-msgstr.t
index 6bae0f66e83f6b1a55c25dee568f84dfa2409df7..900127c76cae85dcbc033308105196a4e3c220fd 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;
@@ -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;
@@ -93,7 +93,6 @@ my $git_cb = sub {
                diag xqx([qw(git diff), "$tmpdir/mime", "$tmpdir/eml"]);
        }
 };
-$git->cat_async_begin;
 my $t = timeit(1, sub {
        while (<$fh>) {
                my ($oid, $type) = split / /;