DEV: stop leaking data into tables during test (#21403)

This amends it so our cached counting reliant specs run in synchronize mode

When running async there are situations where data is left over in the table
after a transactional test. This means that repeat runs of the test suite
fail.
This commit is contained in:
Sam
2023-05-06 07:15:33 +10:00
committed by GitHub
parent c9a6d9ac89
commit 83f1a13374
5 changed files with 41 additions and 12 deletions

View File

@ -21,6 +21,7 @@ RSpec.describe Middleware::RequestTracker do
end
after do
CachedCounting.reset
ApplicationRequest.disable
CachedCounting.disable
end