diff options
author | Matthew Draper <matthew@trebex.net> | 2015-04-23 05:36:58 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-04-23 05:36:58 +0930 |
commit | 40ff5087ec3c932d2b8f79425d8b741f7ed3f362 (patch) | |
tree | 4e7c0bc5430c875d8cc040f8f8ce9f833b32dab6 /activejob | |
parent | 8d901b905c33c22c745fa72fa81e3bd35e56dce4 (diff) | |
download | rails-40ff5087ec3c932d2b8f79425d8b741f7ed3f362.tar.gz rails-40ff5087ec3c932d2b8f79425d8b741f7ed3f362.tar.bz2 rails-40ff5087ec3c932d2b8f79425d8b741f7ed3f362.zip |
Queue Classic runs a second earlier than scheduled
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]
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/test/integration/queuing_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/test/integration/queuing_test.rb b/activejob/test/integration/queuing_test.rb index 3075df607b..09f5c329cc 100644 --- a/activejob/test/integration/queuing_test.rb +++ b/activejob/test/integration/queuing_test.rb @@ -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) |