spec/support/utils.rb in message-driver-0.6.1 vs spec/support/utils.rb in message-driver-0.7.0

- old
+ new

@@ -1,12 +1,8 @@ module Utils def pause_if_needed(seconds = 0.1) seconds *= 10 if ENV['CI'] == 'true' - case BrokerConfig.current_adapter - when :in_memory - else - sleep seconds - end + sleep seconds unless BrokerConfig.current_adapter == :in_memory end end RSpec.configure do |config| config.include Utils