add random string to smoke tests to avoid collision

This commit is contained in:
Henry Oswald committed 2016-06-07 14:39:01 +01:00
1 parent ac3b7a571a
commit da02661d53
1 file changed
+5 -1
+5 -1
View File
@@ -6,10 +6,14 @@ Settings = require "settings-sharelatex"
buildUrl = (path) -> "http://#{Settings.internal.clsi.host}:#{Settings.internal.clsi.port}/#{path}"
random = require("crypto").randomBytes(4).toString("hex")
url = buildUrl("project/smoketest-#{random}/compile")
describe "Running a compile", ->
before (done) ->
request.post {
url: buildUrl("project/smoketest/compile")
url: url
json:
compile:
resources: [