X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fsolver_git.t;h=c162b60557cb540b578f7516c105e07cdfc02e55;hb=934fea5e3b3c4c1ef0cef29477941ebfc44ff7e0;hp=c483aba176a1fdd7b398cbe0eeb173a4d41129cd;hpb=aa454143b1f26ffdf5f32f17c2032473d70eceae;p=public-inbox.git diff --git a/t/solver_git.t b/t/solver_git.t index c483aba1..c162b605 100644 --- a/t/solver_git.t +++ b/t/solver_git.t @@ -15,7 +15,7 @@ chomp $git_dir; # needed for alternates, and --absolute-git-dir is only in git 2.13+ $git_dir = abs_path($git_dir); -use_ok "PublicInbox::$_" for (qw(Inbox V2Writable MIME Git SolverGit WWW)); +use_ok "PublicInbox::$_" for (qw(Inbox V2Writable Git SolverGit WWW)); my ($inboxdir, $for_destroy) = tmpdir(); my $opts = { @@ -29,7 +29,7 @@ my $im = PublicInbox::V2Writable->new($ibx, 1); $im->{parallel} = 0; my $deliver_patch = sub ($) { - $im->add(mime_load($_[0])); + $im->add(eml_load($_[0])); $im->done; }; @@ -41,7 +41,7 @@ $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!');