diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 057b8a15df3..e750e7b648a 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -585,8 +585,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 - Capybara.reset_sessions! - Capybara.use_default_driver Discourse.redis.flushdb end