]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/mda.t
t/solver_git.t: fix test message
[public-inbox.git] / t / mda.t
diff --git a/t/mda.t b/t/mda.t
index c7caf3e0cca455e3eb40088492b62f26f167ecc4..e3c5cdff2603871d52845c4d0dccdc64f0019a69 100644 (file)
--- a/t/mda.t
+++ b/t/mda.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -97,7 +97,7 @@ EOF
                local $ENV{PATH} = $main_path;
                ok(run_script(['-mda'], undef, { 0 => \$in }));
                my $rev = $git->qx(qw(rev-list HEAD));
-               like($rev, qr/\A[a-f0-9]{40}/, "good revision committed");
+               like($rev, qr/\A[a-f0-9]{40,64}/, "good revision committed");
                chomp $rev;
                my $cmt = $git->cat_file($rev);
                like($$cmt, qr/^author Me <me\@example\.com> 0 \+0000\n/m,
@@ -261,7 +261,7 @@ Subject: this message will be trained as spam
 Date: Thu, 01 Jan 1970 00:00:00 +0000
 
 EOF
-       xsys(qw(git config --file), $pi_config, "$cfgpfx.listid", $list_id);
+       xsys(qw(git config --file), $pi_config, "$cfgpfx.listid", uc $list_id);
        $? == 0 or die "failed to set listid $?";
        ok(run_script(['-mda'], undef, { 0 => \$in }),
                'mda OK with List-Id match');