daml script-test choose free port (#3942)

* daml script-test choose free port

* Remove exclusive tag on script-test

The test was marked exclusive because it required access to port 6865.
However, the test-runner now automatically chooses a free port at
runtime.

Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
This commit is contained in:
Andreas Herrmann 2020-01-03 20:04:20 +01:00 committed by GitHub
parent 6e25d10fe2
commit 20b2e2200e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -93,6 +93,7 @@ object TestMain extends StrictLogging {
case None =>
val (apiParameters, cleanup) = if (config.ledgerHost.isEmpty) {
val sandboxConfig = SandboxConfig.default.copy(
port = 0, // Automatically choose a free port.
timeProviderType = config.timeProviderType
)
val sandbox = new SandboxServer(sandboxConfig)

View File

@ -136,7 +136,6 @@ sh_test(
":script-test.dar",
"//daml-script/runner:test-runner",
],
tags = ["exclusive"],
toolchains = ["@rules_sh//sh/posix:make_variables"],
deps = ["@bazel_tools//tools/bash/runfiles"],
)