maintenance: fix post pruning test.

Test mistakenly passed because we used `assert(a, b)` instead of
`assert_equal(a, b)`.
This commit is contained in:
evazion
2020-08-07 08:53:38 -05:00
parent dd44dce597
commit 56ba6c2c58
2 changed files with 12 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ module DanbooruMaintenance
end
def daily
safely { PostPruner.new.prune! }
safely { PostPruner.prune! }
safely { Delayed::Job.where('created_at < ?', 45.days.ago).delete_all }
safely { PostDisapproval.prune! }
safely { regenerate_post_counts! }