X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_bad_mids.t;h=95196a3f4b91f18859791090845be414d17ba00e;hb=1317fb7b4ace03f6d9dfb1a42ee5f9371a1bf913;hp=5008f5be6b65aefec9b08595612e46126f4a9ad0;hpb=4cf7804c2b263e4a92447315f534f76416d4ffad;p=public-inbox.git diff --git a/t/psgi_bad_mids.t b/t/psgi_bad_mids.t index 5008f5be..95196a3f 100644 --- a/t/psgi_bad_mids.t +++ b/t/psgi_bad_mids.t @@ -1,4 +1,4 @@ -# Copyright (C) 2018 all contributors +# Copyright (C) 2018-2019 all contributors # License: AGPL-3.0+ use strict; use warnings; @@ -7,7 +7,7 @@ use File::Temp qw/tempdir/; use PublicInbox::MIME; use PublicInbox::Config; use PublicInbox::WWW; -my @mods = qw(DBD::SQLite Search::Xapian HTTP::Request::Common Plack::Test +my @mods = qw(DBD::SQLite HTTP::Request::Common Plack::Test URI::Escape Plack::Builder); foreach my $mod (@mods) { eval "require $mod"; @@ -22,6 +22,7 @@ my $ibx = { name => 'bad-mids', version => 2, -primary_address => 'test@example.com', + indexlevel => 'basic', }; $ibx = PublicInbox::Inbox->new($ibx); my $im = PublicInbox::V2Writable->new($ibx, 1); @@ -52,11 +53,11 @@ Date: Fri, 02 Oct 1993 00:00:0$i +0000 } $im->done; -my $cfg = { - "$cfgpfx.address" => $ibx->{-primary_address}, - "$cfgpfx.mainrepo" => $mainrepo, -}; -my $config = PublicInbox::Config->new($cfg); +my $cfg = <{-primary_address} +$cfgpfx.mainrepo=$mainrepo +EOF +my $config = PublicInbox::Config->new(\$cfg); my $www = PublicInbox::WWW->new($config); test_psgi(sub { $www->call(@_) }, sub { my ($cb) = @_;