FIX: no keepalive tests for rake tasks, shell could be stalling threads
This commit is contained in:
parent
03f70d45e2
commit
08ee367210
|
@ -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 New Issue