mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-20 01:12:06 +00:00
increase timeout for long-running acceptance tests
This commit is contained in:
parent
8016f15c8a
commit
bc6e560448
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,8 @@ try
|
||||||
catch err
|
catch err
|
||||||
console.log err, fixturePath("tmp"), "unable to create fixture tmp path"
|
console.log err, fixturePath("tmp"), "unable to create fixture tmp path"
|
||||||
|
|
||||||
|
MOCHA_LATEX_TIMEOUT = 60 * 1000
|
||||||
|
|
||||||
convertToPng = (pdfPath, pngPath, callback = (error) ->) ->
|
convertToPng = (pdfPath, pngPath, callback = (error) ->) ->
|
||||||
command = "convert #{fixturePath(pdfPath)} #{fixturePath(pngPath)}"
|
command = "convert #{fixturePath(pdfPath)} #{fixturePath(pngPath)}"
|
||||||
console.log "COMMAND"
|
console.log "COMMAND"
|
||||||
|
@ -109,6 +111,7 @@ describe "Example Documents", ->
|
||||||
@project_id = Client.randomId() + "_" + example_dir
|
@project_id = Client.randomId() + "_" + example_dir
|
||||||
|
|
||||||
it "should generate the correct pdf", (done) ->
|
it "should generate the correct pdf", (done) ->
|
||||||
|
this.timeout(MOCHA_LATEX_TIMEOUT)
|
||||||
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
||||||
if error || body?.compile?.status is "failure"
|
if error || body?.compile?.status is "failure"
|
||||||
console.log "DEBUG: error", error, "body", JSON.stringify(body)
|
console.log "DEBUG: error", error, "body", JSON.stringify(body)
|
||||||
|
@ -116,6 +119,7 @@ describe "Example Documents", ->
|
||||||
downloadAndComparePdf(@project_id, example_dir, pdf.url, done)
|
downloadAndComparePdf(@project_id, example_dir, pdf.url, done)
|
||||||
|
|
||||||
it "should generate the correct pdf on the second run as well", (done) ->
|
it "should generate the correct pdf on the second run as well", (done) ->
|
||||||
|
this.timeout(MOCHA_LATEX_TIMEOUT)
|
||||||
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
||||||
if error || body?.compile?.status is "failure"
|
if error || body?.compile?.status is "failure"
|
||||||
console.log "DEBUG: error", error, "body", JSON.stringify(body)
|
console.log "DEBUG: error", error, "body", JSON.stringify(body)
|
||||||
|
|
Loading…
Reference in a new issue