increase timeout in lock manager test

on heavily loaded machines 20ms isn't long enough to consistently get
multiple calls to the lock manager
This commit is contained in:
Brian Gough 2015-11-27 14:13:46 +00:00
parent 3842f0d1cc
commit 11be8c3733

View file

@ -103,7 +103,7 @@ describe "LockManager", ->
startTime = Date.now()
@LockManager.LOCK_TEST_INTERVAL = 5
@LockManager.tryLock = (doc_id, callback = (error, isFree) ->) ->
if Date.now() - startTime < 20
if Date.now() - startTime < 100
callback null, false
else
callback null, true