Skip to content

Commit

Permalink
rename waitContainerReadyWithLog => waitForContainerReady
Browse files Browse the repository at this point in the history
  • Loading branch information
prongq committed Oct 10, 2023
1 parent e423a11 commit f93cd0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker.go
Expand Up @@ -829,7 +829,7 @@ func (p *DockerProvider) BuildImage(ctx context.Context, img ImageBuildInfo) (st
return repoTag, nil
}

func waitContainerReadyWithLog(ctx context.Context, container *DockerContainer) error {
func waitForContainerReady(ctx context.Context, container *DockerContainer) error {
if container.WaitingFor == nil {
return nil
}
Expand Down Expand Up @@ -1035,7 +1035,7 @@ func (p *DockerProvider) CreateContainer(ctx context.Context, req ContainerReque
dockerContainer := c.(*DockerContainer)

// if a Wait Strategy has been specified, wait before returning
if err := waitContainerReadyWithLog(ctx, dockerContainer); err != nil {
if err := waitForContainerReady(ctx, dockerContainer); err != nil {
return err
}

Expand Down Expand Up @@ -1188,7 +1188,7 @@ func (p *DockerProvider) ReuseOrCreateContainer(ctx context.Context, req Contain
logger: p.Logger,
}

if err := waitContainerReadyWithLog(ctx, dc); err != nil {
if err := waitForContainerReady(ctx, dc); err != nil {
return nil, err
}

Expand Down

0 comments on commit f93cd0b

Please sign in to comment.