DEV: change testing cache clearing so it is more deliberate
This test is flaky, this changes it so we always start tests with a clean cache (concurrency and redis delays pending)
This commit is contained in:
parent
f415712269
commit
bb8dfb124e
|
@ -14,8 +14,12 @@ describe WatchedWord do
|
|||
let(:flag_word) { Fabricate(:watched_word, action: WatchedWord.actions[:flag]) }
|
||||
let(:block_word) { Fabricate(:watched_word, action: WatchedWord.actions[:block]) }
|
||||
|
||||
before_all do
|
||||
WordWatcher.clear_cache!
|
||||
end
|
||||
|
||||
after do
|
||||
$redis.flushall
|
||||
WordWatcher.clear_cache!
|
||||
end
|
||||
|
||||
context "block" do
|
||||
|
|
Loading…
Reference in New Issue