]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/perf-msgview.t
config: support "inboxdir" in addition to "mainrepo"
[public-inbox.git] / t / perf-msgview.t
index 4975305ad16f36c510add459c1aeef543ff26cb9..492ed4877a90d517b3ca2ae354121eee0f669eff 100644 (file)
@@ -19,7 +19,8 @@ if (require_git(2.19, 1)) {
 "git <2.19, cat-file lacks --unordered, locality suffers\n";
 }
 
-my $ibx = PublicInbox::Inbox->new({ mainrepo => $pi_dir, name => 'name' });
+use_ok 'Plack::Util';
+my $ibx = PublicInbox::Inbox->new({ inboxdir => $pi_dir, name => 'name' });
 my $git = $ibx->git;
 my $fh = $git->popen(@cat);
 my $vec = '';
@@ -29,6 +30,7 @@ select($vec, undef, undef, 60) or die "timed out waiting for --batch-check";
 my $ctx = {
        env => { HTTP_HOST => 'example.com', 'psgi.url_scheme' => 'https' },
        -inbox => $ibx,
+       www => Plack::Util::inline_object(style => sub {''}),
 };
 my ($str, $mime, $res, $cmt, $type);
 my $n = 0;