Skip to content

Commit

Permalink
Queue Classic runs a second earlier than scheduled
Browse files Browse the repository at this point in the history
That seems to be a bug, but as we don't actually care about the
precision for our test, we'll just give it a bit longer.

[Matthew Draper & Cristian Bica]
  • Loading branch information
matthewd committed Apr 22, 2015
1 parent 8d901b9 commit 40ff508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activejob/test/integration/queuing_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class QueuingTest < ActiveSupport::TestCase

test 'should run job enqueued in the future at the specified time' do
begin
TestJob.set(wait: 3.seconds).perform_later @id
TestJob.set(wait: 5.seconds).perform_later @id
wait_for_jobs_to_finish_for(2.seconds)
assert_not job_executed
wait_for_jobs_to_finish_for(10.seconds)
Expand Down

0 comments on commit 40ff508

Please sign in to comment.