]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_multipart_not.t
TODO: DHT (distributed hash table) for Message-IDs
[public-inbox.git] / t / psgi_multipart_not.t
index ae248de3c44c64ad51dd60aa6703981b22f51624..40bc3c18c6c8e423c306521af87defbb95b2ef69 100644 (file)
@@ -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 = <<EOF;
+$cfgpfx.address=$ibx->{-primary_address}
+$cfgpfx.inboxdir=$repo
+EOF
+my $config = PublicInbox::Config->new(\$cfg);
 my $www = PublicInbox::WWW->new($config);
 
 my ($res, $raw);