mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 22:45:49 +00:00
Merge pull request #1408 from sharelatex/bg-increase-timeout-on-clone-project
increase timeout for cloning project to 5 minutes GitOrigin-RevId: 949c7553f331573b391ff37f180e80b60c260cf5
This commit is contained in:
parent
79078ac1bb
commit
205da19173
2 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,7 @@ module.exports = ProjectController =
|
|||
res.sendStatus 200
|
||||
|
||||
cloneProject: (req, res, next)->
|
||||
res.setTimeout(5 * 60 * 1000) # allow extra time for the copy to complete
|
||||
metrics.inc "cloned-project"
|
||||
project_id = req.params.Project_id
|
||||
projectName = req.body.projectName
|
||||
|
|
|
@ -142,6 +142,7 @@ describe "ProjectController", ->
|
|||
@res =
|
||||
locals:
|
||||
jsPath:"js path here"
|
||||
setTimeout: sinon.stub()
|
||||
|
||||
describe "updateProjectSettings", ->
|
||||
it "should update the name", (done) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue