Don't run smoke test by default

This commit is contained in:
James Allen
2014-08-19 12:11:56 +01:00
parent a1ebd60b9f
commit 4635052393
2 changed files with 7 additions and 7 deletions

View File

@@ -50,10 +50,11 @@ resCacher =
body:{} body:{}
setContentType:"application/json" setContentType:"application/json"
do runSmokeTest = -> if Settings.smokeTest
logger.log("running smoke tests") do runSmokeTest = ->
smokeTest.run(require.resolve(__dirname + "/test/smoke/js/SmokeTests.js"))({}, resCacher) logger.log("running smoke tests")
setTimeout(runSmokeTest, 20 * 1000) smokeTest.run(require.resolve(__dirname + "/test/smoke/js/SmokeTests.js"))({}, resCacher)
setTimeout(runSmokeTest, 20 * 1000)
app.get "/health_check", (req, res)-> app.get "/health_check", (req, res)->
res.contentType(resCacher?.setContentType) res.contentType(resCacher?.setContentType)

View File

@@ -11,7 +11,6 @@ module.exports =
dialect: "sqlite" dialect: "sqlite"
storage: Path.resolve(__dirname + "/../db.sqlite") storage: Path.resolve(__dirname + "/../db.sqlite")
path: path:
compilesDir: Path.resolve(__dirname + "/../compiles") compilesDir: Path.resolve(__dirname + "/../compiles")
clsiCacheDir: Path.resolve(__dirname + "/../cache") clsiCacheDir: Path.resolve(__dirname + "/../cache")
@@ -36,5 +35,5 @@ module.exports =
apis: apis:
clsi: clsi:
url: "http://localhost:3013" url: "http://localhost:3013"
smokeTest: false