]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/config_limiter.t
inbox: eliminate weaken usage entirely
[public-inbox.git] / t / config_limiter.t
index 486bfbe9cf772972a28648e07caf04ef5ddc33c4..f0b6528122e05fbd5d4773563ab718ba1a3e03bf 100644 (file)
@@ -37,12 +37,11 @@ my $cfgpfx = "publicinbox.test";
        my $lim = $git->{-httpbackend_limiter};
        ok($lim, 'Limiter exists');
        is($lim->{max}, 3, 'limiter has expected slots');
-       $git = undef;
        $ibx->{git} = undef;
-       PublicInbox::Inbox::weaken_task;
-       $git = $ibx->git;
-       isnt($old, "$git", 'got new Git object');
-       is("$git->{-httpbackend_limiter}", "$lim", 'same limiter');
+       PublicInbox::Inbox::cleanup_task;
+       my $new = $ibx->git;
+       isnt($old, "$new", 'got new Git object');
+       is("$new->{-httpbackend_limiter}", "$lim", 'same limiter');
        is($lim->{max}, 3, 'limiter has expected slots');
 }