Skip to content

Commit b76ff24

Browse files
committed
Fix test ordering failures.
The `:jobs` queue needs to be cleared before these tests because they assert on the size of the `:jobs` queue. In some test orderings these examples would fail.
1 parent 842e6e6 commit b76ff24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/job_hooks_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ def self.perform(history)
252252

253253

254254
describe "Resque::Job before_enqueue" do
255+
before{ Resque.redis.flushall }
256+
255257
include PerformJob
256258

257259
class ::BeforeEnqueueJob

0 commit comments

Comments
 (0)