From: Eric Wong Date: Sat, 30 Jul 2016 23:33:11 +0000 (+0000) Subject: t/config_limiter: fix check for identical Git object X-Git-Tag: v1.0.0~262 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4f9325bd4c9a8f971ab6e37aa449ee6958ec95e9;p=public-inbox.git t/config_limiter: fix check for identical Git object If we completely undef an object, it is likely possible to have the same scalar address as the original object even if they are different. So keep the same object around and only force creation of the same reference. Tested on Perl 5.14.2 on Debian 7.x wheezy. --- diff --git a/t/config_limiter.t b/t/config_limiter.t index bfea1510..3c7ec557 100644 --- a/t/config_limiter.t +++ b/t/config_limiter.t @@ -17,7 +17,6 @@ my $cfgpfx = "publicinbox.test"; my $lim = $git->{-httpbackend_limiter}; ok($lim, 'Limiter exists'); is($lim->{max}, 12, 'limiter has expected slots'); - $git = undef; $ibx->{git} = undef; $git = $ibx->git; isnt($old, "$git", 'got new Git object');