test/test_helper.rb in backburner-allq-1.0.35 vs test/test_helper.rb in backburner-allq-1.0.36
- old
+ new
@@ -10,11 +10,11 @@
require 'backburner'
require File.expand_path('../helpers/templogger', __FILE__)
# Configure Backburner
Backburner.configure do |config|
- config.beanstalk_url = "beanstalk://127.0.0.1"
+ config.allq_url = "allq://127.0.0.1:8091"
config.tube_namespace = "demo.test"
end
## Kernel Extensions
require 'stringio'
@@ -86,10 +86,10 @@
def silenced(time=3, &block)
Timeout::timeout(time) { capture_stdout(&block) }
end
def beanstalk_connection
- Backburner::Connection.new(Backburner.configuration.beanstalk_url)
+ Backburner::Connection.new(Backburner.configuration.allq_url)
end
# pop_one_job(tube_name)
def pop_one_job(tube_name=Backburner.configuration.primary_queue)
tube_name = [Backburner.configuration.tube_namespace, tube_name].join(".")