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:
parent
33ca82f783
commit
cd7e160d67
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue