X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_multipart_not.t;h=40bc3c18c6c8e423c306521af87defbb95b2ef69;hb=3c39f9c942a6975245fda878e9b957d8d3367662;hp=4c9fa57ab74d2e24a406f8646846827bcc00f53d;hpb=7d82a8bc04ce2e686371abc6b438ab121b9fa7d0;p=public-inbox.git
diff --git a/t/psgi_multipart_not.t b/t/psgi_multipart_not.t
index 4c9fa57a..40bc3c18 100644
--- a/t/psgi_multipart_not.t
+++ b/t/psgi_multipart_not.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2018 all contributors
+# Copyright (C) 2018-2019 all contributors
# License: AGPL-3.0+
use strict;
use warnings;
@@ -17,7 +17,7 @@ use_ok($_) for @mods;
use_ok 'PublicInbox::V2Writable';
my $repo = tempdir('pi-psgi-multipart-not.XXXXXX', TMPDIR => 1, CLEANUP => 1);
my $ibx = PublicInbox::Inbox->new({
- mainrepo => $repo,
+ inboxdir => $repo,
name => 'multipart-not',
version => 2,
-primary_address => 'test@example.com',
@@ -42,11 +42,11 @@ ok($im->add($mime), 'added broken multipart message');
$im->done;
my $cfgpfx = "publicinbox.v2test";
-my $cfg = {
- "$cfgpfx.address" => $ibx->{-primary_address},
- "$cfgpfx.mainrepo" => $repo,
-};
-my $config = PublicInbox::Config->new($cfg);
+my $cfg = <{-primary_address}
+$cfgpfx.inboxdir=$repo
+EOF
+my $config = PublicInbox::Config->new(\$cfg);
my $www = PublicInbox::WWW->new($config);
my ($res, $raw);