mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02: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:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user