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

Merge pull request #2203 from davydovanton/fix-failed-api-test

Update API test file
This commit is contained in:
Abdelkader Boudih 2015-02-25 09:54:29 +00:00
commit 7351c3947f

View file

@ -24,7 +24,7 @@ class TestApi < Sidekiq::Test
describe "failed" do
it "is initially zero" do
s = Sidekiq::Stats.new
assert_equal 0, s.processed
assert_equal 0, s.failed
end
it "returns number of failed jobs" do
@ -311,8 +311,6 @@ class TestApi < Sidekiq::Test
add_retry('bob1', same_time)
add_retry('bob2', same_time)
r = Sidekiq::RetrySet.new
# jobs = r.fetch(same_time)
# puts jobs[1].jid
assert_equal 1, r.fetch(same_time, 'bob1').size
end