diff --git a/config/initializers/04-message_bus.rb b/config/initializers/04-message_bus.rb index 308985a6de8..b8d67a09649 100644 --- a/config/initializers/04-message_bus.rb +++ b/config/initializers/04-message_bus.rb @@ -45,3 +45,8 @@ end MessageBus.cache_assets = !Rails.env.development? MessageBus.enable_diagnostics + +if Rails.env == "test" + # disable keepalive in testing + MessageBus.keepalive_interval = -1 +end