From 4f9325bd4c9a8f971ab6e37aa449ee6958ec95e9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 30 Jul 2016 23:33:11 +0000 Subject: 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. --- t/config_limiter.t | 1 - 1 file changed, 1 deletion(-) (limited to 't/config_limiter.t') 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'); -- cgit v1.2.3-24-ge0c7