Skip to content

Commit

Permalink
Remove unused lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nurse committed Aug 18, 2016
1 parent 8aba2e8 commit 0d2a7e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions spec/supervisor_spec.rb
Expand Up @@ -3,23 +3,15 @@
class TestHandler < PerfectQueue::Application::Base
def run
#puts "TestHandler: #{task}"
if task.data['raise_error']
raise "expected error test"
end
if num = task.data['sleep']
sleep num
end
#puts "Task finished"
end

def kill(reason)
puts "kill: #{reason.class}: #{reason}"
end
end

class RegexpHandler < PerfectQueue::Application::Base
def run
puts "RegexpHandler: #{task}"
end
end

Expand Down
2 changes: 0 additions & 2 deletions spec/task_monitor_spec.rb
Expand Up @@ -18,8 +18,6 @@
tm = PerfectQueue::TaskMonitor.new(logger: double('logger').as_null_object)
task = double('task')
reason = double('reason')
allow(task).to receive_message_chain(:runner, :kill) \
.with(no_args).with(reason){raise}
epoch = double('epoch')
allow(Time).to receive_message_chain(:now, :to_i){epoch}
ret = double('ret')
Expand Down

0 comments on commit 0d2a7e1

Please sign in to comment.