]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
config: we always have {-section_order}
[public-inbox.git] / t / psgi_v2.t
index 3003c5d62a7cb1397462cb0b45461eb0f7eee829..e4f7306e1606b3f93abcb33471f5b817d65c72b7 100644 (file)
@@ -54,11 +54,11 @@ $new_mid = $mids->[1];
 $im->done;
 
 my $cfgpfx = "publicinbox.v2test";
-my $cfg = {
-       "$cfgpfx.address" => $ibx->{-primary_address},
-       "$cfgpfx.mainrepo" => $mainrepo,
-};
-my $config = PublicInbox::Config->new($cfg);
+my $cfg = <<EOF;
+$cfgpfx.address=$ibx->{-primary_address}
+$cfgpfx.mainrepo=$mainrepo
+EOF
+my $config = PublicInbox::Config->new(\$cfg);
 my $www = PublicInbox::WWW->new($config);
 my ($res, $raw, @from_);
 test_psgi(sub { $www->call(@_) }, sub {