mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
3842f0d1cc
commit
11be8c3733
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue