mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02:00
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:
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user