mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -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.cache_assets = !Rails.env.development?
|
||||||
MessageBus.enable_diagnostics
|
MessageBus.enable_diagnostics
|
||||||
|
|
||||||
if Rails.env == "test"
|
if Rails.env == "test" || $0 =~ /rake$/
|
||||||
# disable keepalive in testing
|
# disable keepalive in testing
|
||||||
MessageBus.keepalive_interval = -1
|
MessageBus.keepalive_interval = -1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue