about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-30 23:33:11 +0000
committerEric Wong <e@80x24.org>2016-07-30 23:33:30 +0000
commit4f9325bd4c9a8f971ab6e37aa449ee6958ec95e9 (patch)
treed2b33a7615bd82c789f76c677444de62093eb4b3 /t
parent87b61d1daa05bdcf9d810d1655e5abb45456e9a5 (diff)
downloadpublic-inbox-4f9325bd4c9a8f971ab6e37aa449ee6958ec95e9.tar.gz
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.
Diffstat (limited to 't')
-rw-r--r--t/config_limiter.t1
1 files changed, 0 insertions, 1 deletions
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');