Skip to content

Commit a5f1fb8

Browse files
committed
integration-tests/deploy: make container names unique
1 parent 9bff00f commit a5f1fb8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

integration-tests/deploy/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77
"strconv"
88
"strings"
9+
"testing"
910
)
1011

1112
var (
@@ -214,6 +215,9 @@ func ValidateGeth() (*GethConfig, error) {
214215
func ValidateDevnet() (*DevnetConfig, error) {
215216
var errs []string
216217
name := "chainlink-aptos.devnet"
218+
if testing.Testing() {
219+
name += "-" + strconv.Itoa(os.Getpid())
220+
}
217221

218222
devnetImage, ok := os.LookupEnv("DEVNET_IMAGE")
219223

scripts/devnet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
44

5-
container_name="chainlink-aptos.devnet"
5+
container_name="chainlink-aptos.devnet-$$"
66
container_image="aptoslabs/tools:aptos-node-v1.34.3-hotfix"
77

88
if [ -n "${CUSTOM_IMAGE:-}" ]; then

0 commit comments

Comments
 (0)