X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_v2.t;h=6a2ea5bad471e25e04da410c94be9eb363833b6e;hb=107123dd03f38b97579ce5976f31ae3fd5f22903;hp=5d089dbed5f01e3f2978aad73bcd8c21e874432c;hpb=41654a8cd9372c0640c4ca5339e5881927965e41;p=public-inbox.git diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 5d089dbe..6a2ea5ba 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -50,12 +50,11 @@ $new_mid = PublicInbox::MID::mid_clean($mids[0]); $im->done; my $cfgpfx = "publicinbox.v2test"; -my %cfg = ( +my $cfg = { "$cfgpfx.address" => $ibx->{-primary_address}, "$cfgpfx.mainrepo" => $mainrepo, -); - -my $config = PublicInbox::Config->new({ %cfg }); +}; +my $config = PublicInbox::Config->new($cfg); my $www = PublicInbox::WWW->new($config); my ($res, $raw, @from_); test_psgi(sub { $www->call(@_) }, sub { @@ -85,9 +84,6 @@ is($warn[0], $warn[1], 'both warnings are the same'); my $third = PublicInbox::MID::mid_clean($mids[0]); $im->done; -# need to reload... -$config = PublicInbox::Config->new({ %cfg }); -$www = PublicInbox::WWW->new($config); test_psgi(sub { $www->call(@_) }, sub { my ($cb) = @_; $res = $cb->(GET("/v2test/$third/raw"));