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:
Alan Guo Xiang Tan
2023-12-21 10:35:51 +08:00
committed by GitHub
parent 25ccf6fab1
commit 20f950a116

View File

@@ -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