diff options
Diffstat (limited to 't/git.t')
-rw-r--r-- | t/git.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -142,6 +142,10 @@ if ('alternates reloaded') { open $fh, '<', "$alt/config" or die "open failed: $!\n"; my $config = eval { local $/; <$fh> }; is($$found, $config, 'alternates reloaded'); + + ok($gcf->cleanup(time - 30), 'cleanup did not expire'); + ok(!$gcf->cleanup(time + 30), 'cleanup can expire'); + ok(!$gcf->cleanup, 'cleanup idempotent'); } use_ok 'PublicInbox::Git', qw(git_unquote git_quote); |