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

Fix race condition in test

This commit is contained in:
Mike Perham 2015-01-16 13:59:35 -08:00
parent 33ca82f783
commit cd7e160d67

View file

@ -121,7 +121,7 @@ class TestManager < Sidekiq::Test
info = Sidekiq.redis { |c| c.hmget('identity', 'busy') }
assert_equal ["1"], info
expires = Sidekiq.redis { |c| c.pttl('identity') }
assert_in_delta 60000, expires, 50
assert_in_delta 60000, expires, 500
end
end