mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Add an acceptance test to check the preview endpoint doesn't time out.
This endpoint needs a lot more testing.
This commit is contained in:
parent
da5a538095
commit
297ad78b1e
1 changed files with 11 additions and 0 deletions
|
@ -112,3 +112,14 @@ describe "Filestore", ->
|
||||||
request.get newFileUrl, (err, response, body)=>
|
request.get newFileUrl, (err, response, body)=>
|
||||||
body.should.equal @constantFileContent
|
body.should.equal @constantFileContent
|
||||||
done()
|
done()
|
||||||
|
|
||||||
|
describe "getting the preview image", ->
|
||||||
|
|
||||||
|
beforeEach ->
|
||||||
|
@fileUrl = @fileUrl + '?style=preview&cacheWarm=true'
|
||||||
|
|
||||||
|
it "should not time out", (done) ->
|
||||||
|
@timeout(1000 * 20)
|
||||||
|
request.get @fileUrl, (err, response, body) =>
|
||||||
|
expect(response).to.not.equal null
|
||||||
|
done()
|
||||||
|
|
Loading…
Reference in a new issue