Merge pull request #8423 from overleaf/briangough-issue8388

increase lock and timeout for history resync to 6 minutes

GitOrigin-RevId: 2aea0cbc26c92ed0aad8f815ccd41a2abc0b752e
This commit is contained in:
Brian Gough
2022-06-17 09:03:31 +01:00
committed by Copybot
parent 9e2295d487
commit 1a4ec7ab2e
9 changed files with 118 additions and 67 deletions

View File

@@ -88,6 +88,7 @@ describe('ProjectEntityUpdateHandler', function () {
runWithLock: sinon.spy((namespace, id, runner, callback) =>
runner(callback)
),
withTimeout: sinon.stub().returns(this.LockManager),
}
this.ProjectModel = {
updateOne: sinon.stub(),
@@ -1954,6 +1955,10 @@ describe('ProjectEntityUpdateHandler', function () {
.should.equal(true)
})
it('uses an extended timeout', function () {
this.LockManager.withTimeout.calledWith(6 * 60).should.equal(true)
})
it('tells the doc updater to sync the project', function () {
const docs = [
{