diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-01-28 11:34:28 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-01-28 11:34:28 +0900 |
commit | acd4840c2a1614834d0236bb91d54e9ad9bddd1c (patch) | |
tree | c3eaefb187c99fd8f3cf4d9920b2264bba957d28 /activejob | |
parent | 05112b21310c3ea04026176a5f7ca11040454ac1 (diff) | |
download | rails-acd4840c2a1614834d0236bb91d54e9ad9bddd1c.tar.gz rails-acd4840c2a1614834d0236bb91d54e9ad9bddd1c.tar.bz2 rails-acd4840c2a1614834d0236bb91d54e9ad9bddd1c.zip |
make backburner integration test to work
Currently, backburner integration test is not running on CI.
https://travis-ci.org/rails/rails/jobs/196005322#L610
Using `Backburner::Worker.connection` to check whether beanstalkd is
running. But `Backburner::Worker.connection` was removed in backburner
1.2.0.
https://github.com/nesquena/backburner/commit/81fde499c2263abe8dedee59a3d0e03e92d72627
Therefore, this check process always becomes false, so the test is no
longer done. I fixed it so that check processing is done correctly.
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/test/support/integration/adapters/backburner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/test/support/integration/adapters/backburner.rb b/activejob/test/support/integration/adapters/backburner.rb index 263097c792..2e194933a1 100644 --- a/activejob/test/support/integration/adapters/backburner.rb +++ b/activejob/test/support/integration/adapters/backburner.rb @@ -23,12 +23,12 @@ module BackburnerJobsManager end def tube - @tube ||= Beaneater::Tube.new(Backburner::Worker.connection, "backburner.worker.queue.integration-tests") # backburner dasherizes the queue name + @tube ||= Beaneater::Tube.new(@worker.connection, "backburner.worker.queue.integration-tests") # backburner dasherizes the queue name end def can_run? begin - Backburner::Worker.connection.send :connect! + @worker = Backburner::Worker.new rescue return false end |