X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fmda.t;h=5dbcec63fc100dfa5c60e84e0c82353a58c23d69;hb=3d41aa23f35501ca92aab8aa42980fa73f7fa74f;hp=f3c5164b44b3ef36e556f752fb71e780f25f61f6;hpb=5e800c1aac067ec42cc6bcac10a0c339467a26d6;p=public-inbox.git
diff --git a/t/mda.t b/t/mda.t
index f3c5164b..5dbcec63 100644
--- a/t/mda.t
+++ b/t/mda.t
@@ -1,5 +1,5 @@
-# Copyright (C) 2014-2015 all contributors
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2014-2018 all contributors
+# License: AGPL-3.0+
use strict;
use warnings;
use Test::More;
@@ -57,7 +57,7 @@ local $ENV{GIT_COMMITTER_NAME} = eval {
my $msg = Email::MIME->new($str);
my $from = $msg->header('From');
- my $author = PublicInbox::Address::from_name($from);
+ my ($author) = PublicInbox::Address::names($from);
my ($email) = PublicInbox::Address::emails($from);
my $date = $msg->header('Date');
@@ -187,6 +187,7 @@ EOF
# now train it
local $ENV{GIT_AUTHOR_EMAIL} = 'trainer@example.com';
local $ENV{GIT_COMMITTER_EMAIL} = 'trainer@example.com';
+ local $ENV{GIT_COMMITTER_NAME} = undef;
IPC::Run::run([$learn, "spam"], \$msg);
is($?, 0, "no failure from learning spam");
IPC::Run::run([$learn, "spam"], \$msg);