Skip to content

Commit

Permalink
Revert "feature: test of Resque::DirtyExit exception for uniq worker …
Browse files Browse the repository at this point in the history
…with retry"

This reverts commit d3d423f.
  • Loading branch information
ashalaev committed Sep 11, 2017
1 parent 3b55c58 commit 7902ea0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
29 changes: 0 additions & 29 deletions spec/resque/integration/unique_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,32 +127,3 @@ def self.execute(x)
worker.join
end
end

describe Resque::Integration::Unique, '#on_failure_retry_with_keep_meta_id' do
class JobUniqueWithRetry
include Resque::Integration
extend Resque::Plugins::Retry

unique do |foo_var, params|
params[:foo]
end

queue :default

def self.execute(foo_var, params)
sleep 0.2
Resque.logger.info 'Hello, world'
end
end

let(:worker) { Resque::Worker.new(:default) }
let(:job) { Resque::Job.new(:default, {'class' => 'JobUniqueWithRetry', 'args' => ['abcd', 1, {foo: 'bar'}]}) }

before do
worker.working_on(job)
end

it do
expect { worker.unregister_worker }.not_to raise_error
end
end
4 changes: 0 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# coding: utf-8
require 'bundler/setup'
require 'pry-byebug'
require 'rspec'
require 'resque'
require 'simplecov'
Expand All @@ -23,7 +22,4 @@ module ApiHelper
config.before do
Resque.redis.redis.flushdb
end

config.filter_run_including focus: true
config.run_all_when_everything_filtered = true
end

0 comments on commit 7902ea0

Please sign in to comment.