mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: no keepalive tests for rake tasks, shell could be stalling threads
This commit is contained in:
@@ -51,7 +51,7 @@ end
|
||||
MessageBus.cache_assets = !Rails.env.development?
|
||||
MessageBus.enable_diagnostics
|
||||
|
||||
if Rails.env == "test"
|
||||
if Rails.env == "test" || $0 =~ /rake$/
|
||||
# disable keepalive in testing
|
||||
MessageBus.keepalive_interval = -1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user