From a208d17ed99577faa8b52d46107fad5516b346b0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Jan 2020 22:35:02 +0000 Subject: t/solver_git: avoid uninitialized warnings in hostname generation 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") --- t/solver_git.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- cgit v1.2.3-24-ge0c7