about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-11 22:35:02 +0000
committerEric Wong <e@yhbt.net>2020-01-13 04:36:46 +0000
commita208d17ed99577faa8b52d46107fad5516b346b0 (patch)
tree8ffb9f8b49c10fc5acfc79ec72471e5f936926f5 /t
parente67159e720994c7442636a7d5250ea8a49a85b28 (diff)
downloadpublic-inbox-a208d17ed99577faa8b52d46107fad5516b346b0.tar.gz
Outside of tests, this is only relevant for non-PSGI use, which
may happen someday...

Fixes: cb1c874520153f5c ("inbox: use PublicInbox::Git::host_prefix_url for base_url")
Diffstat (limited to 't')
-rw-r--r--t/solver_git.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/solver_git.t b/t/solver_git.t
index 77fa1e09..98317fae 100644
--- a/t/solver_git.t
+++ b/t/solver_git.t
@@ -42,7 +42,8 @@ $ibx->{-repo_objs} = [ $git ];
 my $res;
 my $solver = PublicInbox::SolverGit->new($ibx, sub { $res = $_[0] });
 open my $log, '+>>', "$inboxdir/solve.log" or die "open: $!";
-my $psgi_env = { 'psgi.errors' => *STDERR, 'psgi.url_scheme' => 'http' };
+my $psgi_env = { 'psgi.errors' => *STDERR, 'psgi.url_scheme' => 'http',
+                'HTTP_HOST' => 'example.com' };
 $solver->solve($psgi_env, $log, '69df7d5', {});
 ok($res, 'solved a blob!');
 my $wt_git = $res->[0];