X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fv2mda.t;h=94b63310b5a30bab420eb0cb31ef7c6a91ecde89;hb=62d1a4da996bd9a664be954f71f78fe052f9df16;hp=bd49a38ad36d48a8127df4706537ae192d9b57a4;hpb=a09f678d8254064af7ca6dcfb3c3f84b5ae37b51;p=public-inbox.git diff --git a/t/v2mda.t b/t/v2mda.t index bd49a38a..94b63310 100644 --- a/t/v2mda.t +++ b/t/v2mda.t @@ -1,16 +1,15 @@ -# Copyright (C) 2018-2019 all contributors +# Copyright (C) 2018-2020 all contributors # License: AGPL-3.0+ use strict; use warnings; use Test::More; -use PublicInbox::MIME; use Fcntl qw(SEEK_SET); use Cwd; use PublicInbox::TestCommon; require_git(2.6); my $V = 2; -require_mods(qw(DBD::SQLite Search::Xapian)); +require_mods(qw(DBD::SQLite Search::Xapian Email::MIME)); use_ok 'PublicInbox::V2Writable'; my ($tmpdir, $for_destroy) = tmpdir(); my $ibx = { @@ -18,7 +17,7 @@ my $ibx = { name => 'test-v2writable', address => [ 'test@example.com' ], }; -my $mime = PublicInbox::MIME->create( +my $mime = Email::MIME->create( header => [ From => 'a@example.com', To => 'test@example.com', @@ -72,7 +71,7 @@ is($saved->{mime}->as_string, $mime->as_string, 'injected message'); my $config = "$ENV{PI_DIR}/config"; ok(-f $config, 'config exists'); my $k = 'publicinboxmda.spamcheck'; - is(system('git', 'config', "--file=$config", $k, 'none'), 0, + is(xsys('git', 'config', "--file=$config", $k, 'none'), 0, 'disabled spamcheck for mda'); ok(run_script(['-mda'], undef, $rdr), 'mda did not die');