Skip to content

Commit fbc7838

Browse files
committed
redis.flushall already exists in the before block
1 parent 2139b66 commit fbc7838

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/worker_test.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ def self.exception
329329
end
330330

331331
it "Will call a before_first_fork hook only once" do
332-
Resque.redis.flushall
333332
$BEFORE_FORK_CALLED = 0
334333
Resque.before_first_fork = Proc.new { $BEFORE_FORK_CALLED += 1 }
335334
workerA = Resque::Worker.new(:jobs)
@@ -346,7 +345,6 @@ def self.exception
346345
end
347346

348347
it "Will call a before_fork hook before forking" do
349-
Resque.redis.flushall
350348
$BEFORE_FORK_CALLED = false
351349
Resque.before_fork = Proc.new { $BEFORE_FORK_CALLED = true }
352350
workerA = Resque::Worker.new(:jobs)
@@ -377,7 +375,6 @@ def self.exception
377375
end
378376

379377
it "Will call an after_fork hook after forking" do
380-
Resque.redis.flushall
381378
$AFTER_FORK_CALLED = false
382379
Resque.after_fork = Proc.new { $AFTER_FORK_CALLED = true }
383380
workerA = Resque::Worker.new(:jobs)

0 commit comments

Comments
 (0)