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:
Brian Gough 2019-01-16 13:03:09 +00:00 committed by sharelatex
parent 79078ac1bb
commit 205da19173
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -142,6 +142,7 @@ describe "ProjectController", ->
@res =
locals:
jsPath:"js path here"
setTimeout: sinon.stub()
describe "updateProjectSettings", ->
it "should update the name", (done) ->