Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/.changeset/v1.54.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix tc logger for v0.36.0
1 change: 1 addition & 0 deletions lib/.changeset/v1.54.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Make Parrot Docker container startup time configurable
7 changes: 6 additions & 1 deletion lib/docker/test_env/parrot.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const (
defaultParrotImage = "kalverra/parrot"
defaultParrotVersion = "v0.6.2"
defaultParrotPort = "80"
defaultStartupTimeout = 10 * time.Second
)

// Parrot is a test environment component that wraps a Parrot server.
Expand Down Expand Up @@ -56,14 +57,18 @@ func NewParrot(networks []string, opts ...EnvComponentOption) *Parrot {
EnvComponent: EnvComponent{
ContainerName: fmt.Sprintf("%s-%s", "parrot", uuid.NewString()[0:3]),
Networks: networks,
StartupTimeout: 10 * time.Second,
},
l: log.Logger,
}
p.SetDefaultHooks()
for _, opt := range opts {
opt(&p.EnvComponent)
}

if p.StartupTimeout == 0 {
p.StartupTimeout = defaultStartupTimeout
}

return p
}

Expand Down
Loading