1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix for running client test standalone

This commit is contained in:
Mike Perham 2022-03-11 10:10:53 -08:00
parent 20cdf68a73
commit 70604138a6

View file

@ -280,6 +280,7 @@ describe Sidekiq::Client do
end
it "can push jobs scheduled using ActiveSupport::Duration" do
require 'active_support/core_ext/integer/time'
jids = Sidekiq::Client.push_bulk("class" => QueuedWorker, "args" => [[1], [2]], "at" => [1.seconds, 111.seconds])
assert_equal 2, jids.size
end