diff --git a/services/web/test/acceptance/src/ProjectStructureMongoLockTest.js b/services/web/test/acceptance/src/ProjectStructureMongoLockTest.js index 20e5fc7f53..dd3909def1 100644 --- a/services/web/test/acceptance/src/ProjectStructureMongoLockTest.js +++ b/services/web/test/acceptance/src/ProjectStructureMongoLockTest.js @@ -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