X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fconfig_limiter.t;h=c1fffecf8b3c381ae91ee8a60769ff3b6fddadf2;hb=dde1b083571ed893cbb1990f01f9e11ed804cba5;hp=b18951a61a2f5c8f4f664fd7f80078b44fb8a26e;hpb=e220b8b2ee5cfd458167dc2c6c92726352c4c80e;p=public-inbox.git
diff --git a/t/config_limiter.t b/t/config_limiter.t
index b18951a6..c1fffecf 100644
--- a/t/config_limiter.t
+++ b/t/config_limiter.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors
+# Copyright (C) 2016-2019 all contributors
# License: AGPL-3.0+
use strict;
use warnings;
@@ -6,11 +6,11 @@ use Test::More;
use PublicInbox::Config;
my $cfgpfx = "publicinbox.test";
{
- my $config = PublicInbox::Config->new({
- "$cfgpfx.address" => 'test@example.com',
- "$cfgpfx.mainrepo" => '/path/to/non/existent',
- "$cfgpfx.httpbackendmax" => 12,
- });
+ my $config = PublicInbox::Config->new(\<lookup_name('test');
my $git = $ibx->git;
my $old = "$git";
@@ -24,16 +24,16 @@ my $cfgpfx = "publicinbox.test";
}
{
- my $config = PublicInbox::Config->new({
- 'publicinboxlimiter.named.max' => 3,
- "$cfgpfx.address" => 'test@example.com',
- "$cfgpfx.mainrepo" => '/path/to/non/existent',
- "$cfgpfx.httpbackendmax" => 'named',
- });
+ my $config = PublicInbox::Config->new(\<lookup_name('test');
my $git = $ibx->git;
ok($git, 'got git object');
- my $old = "$git";
+ my $old = "$git"; # stringify object ref "Git(0xDEADBEEF)"
my $lim = $git->{-httpbackend_limiter};
ok($lim, 'Limiter exists');
is($lim->{max}, 3, 'limiter has expected slots');