mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
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:
parent
6e25d10fe2
commit
20b2e2200e
@ -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)
|
||||
|
@ -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"],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user