mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove unnecessary method call in system tests teardown (#24998)
Why this change? `Scheduler::Deferrable` runs in the async mode in the test environment so there is no queue we need to flush.
This commit is contained in:
committed by
GitHub
parent
25ccf6fab1
commit
20f950a116
@@ -563,7 +563,6 @@ RSpec.configure do |config|
|
||||
|
||||
page.execute_script("if (typeof MessageBus !== 'undefined') { MessageBus.stop(); }")
|
||||
MessageBus.backend_instance.reset! # Clears all existing backlog from memory backend
|
||||
Scheduler::Defer.do_all_work # Process everything that was added to the defer queue when running the test
|
||||
Discourse.redis.flushdb
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user