mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #486 from sharelatex/afc-fix-flaky-tests
Fix LinkedFiles flaky tests
This commit is contained in:
commit
292e21fbb6
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
||||||
async = require "async"
|
async = require "async"
|
||||||
expect = require("chai").expect
|
expect = require("chai").expect
|
||||||
_ = require 'underscore'
|
_ = require 'underscore'
|
||||||
|
mkdirp = require "mkdirp"
|
||||||
|
|
||||||
|
Settings = require "settings-sharelatex"
|
||||||
MockFileStoreApi = require './helpers/MockFileStoreApi'
|
MockFileStoreApi = require './helpers/MockFileStoreApi'
|
||||||
request = require "./helpers/request"
|
request = require "./helpers/request"
|
||||||
User = require "./helpers/User"
|
User = require "./helpers/User"
|
||||||
|
@ -21,8 +23,9 @@ describe "LinkedFiles", ->
|
||||||
before (done) ->
|
before (done) ->
|
||||||
LinkedUrlProxy.listen 6543, (error) =>
|
LinkedUrlProxy.listen 6543, (error) =>
|
||||||
return done(error) if error?
|
return done(error) if error?
|
||||||
@owner = new User()
|
@owner = new User()
|
||||||
@owner.login done
|
@owner.login ->
|
||||||
|
mkdirp Settings.path.dumpFolder, done
|
||||||
|
|
||||||
describe "creating a URL based linked file", ->
|
describe "creating a URL based linked file", ->
|
||||||
before (done) ->
|
before (done) ->
|
||||||
|
@ -181,4 +184,4 @@ describe "LinkedFiles", ->
|
||||||
done()
|
done()
|
||||||
|
|
||||||
# TODO: Add test for asking for host that return ENOTFOUND
|
# TODO: Add test for asking for host that return ENOTFOUND
|
||||||
# (This will probably end up handled by the proxy)
|
# (This will probably end up handled by the proxy)
|
||||||
|
|
Loading…
Reference in a new issue