FIX: no keepalive tests for rake tasks, shell could be stalling threads

This commit is contained in:
Sam 2015-09-29 10:17:56 +10:00
parent 03f70d45e2
commit 08ee367210

View file

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