Merge pull request #4262 from overleaf/jpa-bump-sync-overhead

[ClsiManager] bump sync overhead from 60s to 120s

GitOrigin-RevId: ce968a054419a3ad8e6b0bd0ff5897aae3643f8c
This commit is contained in:
Jakob Ackermann 2021-06-24 16:56:10 +02:00 committed by Copybot
parent e57be19ee3
commit 15978e1510
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ const Errors = require('../Errors/Errors')
const VALID_COMPILERS = ['pdflatex', 'latex', 'xelatex', 'lualatex']
// see clsi: RequestParser.MAX_TIMEOUT
const DEFAULT_TIMEOUT = 600
const OVERHEAD_SYNC_AND_OUTPUT = 60 * 1000
const OVERHEAD_SYNC_AND_OUTPUT = 120 * 1000
const ClsiManager = {
sendRequest(projectId, userId, options, callback) {

View file

@ -941,7 +941,7 @@ describe('ClsiManager', function () {
method: 'POST',
url,
json: this.req,
timeout: 42 * 1000 + 60 * 1000,
timeout: 42 * 1000 + 120 * 1000,
})
.should.equal(true)
})