@@ -146,7 +146,7 @@ def perform
146146 @dispatcher . start
147147 @worker . start
148148
149- wait_for_batches_to_finish_for ( 2 . seconds )
149+ wait_for_batches_to_finish_for ( 5 . seconds )
150150
151151 jobs = batch_jobs ( batch1 , batch2 , batch3 )
152152 assert_equal [ "hey" , "ho" , "let's go" ] , JobBuffer . values . sort
@@ -170,8 +170,8 @@ def perform
170170 @dispatcher . start
171171 @worker . start
172172
173- wait_for_batches_to_finish_for ( 3 . seconds )
174- wait_for_jobs_to_finish_for ( 1 . second )
173+ wait_for_batches_to_finish_for ( 5 . seconds )
174+ wait_for_jobs_to_finish_for ( 5 . second )
175175
176176 job_batch1 = SolidQueue ::Batch . find_by ( id : batch1 . id )
177177 job_batch2 = SolidQueue ::Batch . find_by ( id : batch2 . id )
@@ -205,8 +205,8 @@ def perform
205205 @dispatcher . start
206206 @worker . start
207207
208- wait_for_batches_to_finish_for ( 3 . seconds )
209- wait_for_jobs_to_finish_for ( 1 . second )
208+ wait_for_batches_to_finish_for ( 5 . seconds )
209+ wait_for_jobs_to_finish_for ( 5 . second )
210210
211211 assert_equal 6 , batch1 . reload . jobs . count
212212 assert_equal 6 , batch1 . total_jobs
@@ -229,8 +229,8 @@ def perform
229229 @dispatcher . start
230230 @worker . start
231231
232- wait_for_batches_to_finish_for ( 3 . seconds )
233- wait_for_jobs_to_finish_for ( 1 . second )
232+ wait_for_batches_to_finish_for ( 5 . seconds )
233+ wait_for_jobs_to_finish_for ( 5 . second )
234234
235235 job_batch1 = SolidQueue ::Batch . find_by ( id : batch1 . id )
236236 job_batch2 = SolidQueue ::Batch . find_by ( id : batch2 . id )
@@ -265,8 +265,8 @@ def perform
265265 @dispatcher . start
266266 @worker . start
267267
268- wait_for_batches_to_finish_for ( 2 . seconds )
269- wait_for_jobs_to_finish_for ( 2 . seconds )
268+ wait_for_batches_to_finish_for ( 5 . seconds )
269+ wait_for_jobs_to_finish_for ( 5 . seconds )
270270
271271 assert_equal true , batch1 . reload . finished?
272272 assert_equal 0 , SolidQueue ::Job . count
0 commit comments