itests: run etcd itests with generated ports

This commit is contained in:
Andras Banki-Horvath committed 2021-01-08 15:39:12 +01:00
1 parent f1831f0581
commit b2ab5e8af1
2 files changed
+14 -1

No files matched your search

+13
View File
@@ -298,6 +298,19 @@ func (cfg NodeConfig) genArgs() []string {
if cfg.Etcd {
args = append(args, "--db.backend=etcd")
args = append(args, "--db.etcd.embedded")
args = append(
args, fmt.Sprintf(
"--db.etcd.embedded_client_port=%v",
nextAvailablePort(),
),
)
args = append(
args, fmt.Sprintf(
"--db.etcd.embedded_peer_port=%v",
nextAvailablePort(),
),
)
args = append(args, "--db.etcd.embedded")
}
if cfg.FeeURL != "" {