mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: no keepalive tests for rake tasks, shell could be stalling threads
This commit is contained in:
parent
03f70d45e2
commit
08ee367210
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue