mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #3009 from overleaf/jpa-fix-flaky-locking-in-tests
[misc] ProjectStructureMongoLockTest: eventually restore locking timeout GitOrigin-RevId: 6c139edb0f6e37775c459a50a71dd90802e366fc
This commit is contained in:
parent
3660a98fd3
commit
ffc5c4be8f
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,14 @@ const _ = require('lodash')
|
|||
|
||||
describe('ProjectStructureMongoLock', function() {
|
||||
describe('whilst a project lock is taken', function() {
|
||||
let oldMaxLockWaitTime
|
||||
before(function() {
|
||||
oldMaxLockWaitTime = LockManager.MAX_LOCK_WAIT_TIME
|
||||
})
|
||||
after(function() {
|
||||
LockManager.MAX_LOCK_WAIT_TIME = oldMaxLockWaitTime
|
||||
})
|
||||
|
||||
beforeEach(function(done) {
|
||||
// We want to instantly fail if the lock is taken
|
||||
LockManager.MAX_LOCK_WAIT_TIME = 1
|
||||
|
|
Loading…
Reference in a new issue