mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Add failing test for scheduling in bulk and enqueued_at (#5162)
This commit is contained in:
parent
38f4a9336c
commit
7e54709460
1 changed files with 10 additions and 0 deletions
|
@ -54,6 +54,16 @@ describe 'job scheduling' do
|
|||
assert job['created_at']
|
||||
refute job['enqueued_at']
|
||||
end
|
||||
|
||||
it 'removes the enqueued_at field when scheduling in bulk' do
|
||||
ss = Sidekiq::ScheduledSet.new
|
||||
ss.clear
|
||||
|
||||
assert Sidekiq::Client.push_bulk('class' => SomeScheduledWorker, 'args' => [['mike'], ['mike']], 'at' => 600)
|
||||
job = ss.first
|
||||
assert job['created_at']
|
||||
refute job['enqueued_at']
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue