mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 14:32:17 +00:00
add random string to smoke tests to avoid collision
This commit is contained in:
parent
fdc8d83646
commit
f0dc5d6f86
1 changed files with 5 additions and 1 deletions
|
@ -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: [
|
||||
|
|
Loading…
Reference in a new issue