mirror of
https://dev.azure.com/schwarzit/schwarzit.stackit-public/_git/audit-go
synced 2026-02-07 16:47:24 +00:00
Increase solace test container startup timeouts
This commit is contained in:
parent
d415c97559
commit
e9a6279ab2
1 changed files with 2 additions and 4 deletions
|
|
@ -140,7 +140,7 @@ func NewSolaceContainer(ctx context.Context) (*SolaceContainer, error) {
|
|||
ShmSize: 1024 * 1024 * 1024, // 1 GB,
|
||||
Env: env,
|
||||
WaitingFor: wait.ForLog("Running pre-startup checks:").
|
||||
WithStartupTimeout(60 * time.Second),
|
||||
WithStartupTimeout(90 * time.Second),
|
||||
}
|
||||
container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
|
||||
ContainerRequest: request,
|
||||
|
|
@ -187,10 +187,8 @@ func NewSolaceContainer(ctx context.Context) (*SolaceContainer, error) {
|
|||
)
|
||||
if err != nil && strings.Contains(err.Error(), "NOT_FOUND") {
|
||||
solaceStarting = false
|
||||
time.Sleep(1000 * time.Millisecond)
|
||||
} else {
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
time.Sleep(1000 * time.Millisecond)
|
||||
}
|
||||
|
||||
// Return container object
|
||||
|
|
|
|||
Loading…
Reference in a new issue