Skip to content

Commit 2c31800

Browse files
committed
DEBUG: try different container name
1 parent 508e66c commit 2c31800

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/docker/test_env/parrot.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ import (
2323
const (
2424
defaultParrotImage = "kalverra/parrot"
2525
defaultParrotVersion = "v0.5.0"
26-
// defaultParrotPort = "80"
27-
defaultParrotPort = "5058" // DEBUG: checking if port chosen is wrong in CI
26+
defaultParrotPort = "80"
2827
)
2928

3029
// Parrot is a test environment component that wraps a Parrot server.
@@ -55,12 +54,13 @@ type ParrotAdapterResult struct {
5554
func NewParrot(networks []string, opts ...EnvComponentOption) *Parrot {
5655
p := &Parrot{
5756
EnvComponent: EnvComponent{
58-
ContainerName: "parrot",
57+
ContainerName: fmt.Sprintf("%s-%s", "parrot", uuid.NewString()[0:3]),
5958
Networks: networks,
6059
StartupTimeout: 10 * time.Second,
6160
},
6261
l: log.Logger,
6362
}
63+
p.SetDefaultHooks()
6464
for _, opt := range opts {
6565
opt(&p.EnvComponent)
6666
}

0 commit comments

Comments
 (0)