Skip to content

Commit

Permalink
chore: use listen port instead of host port
Browse files Browse the repository at this point in the history
Use ForListeningPort instead of NewHostPortStrategy as it's more readable.

Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
  • Loading branch information
stevenh and mdelapenya authored Aug 7, 2024
1 parent 07bc76e commit d229f43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/inbucket/inbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
Image: img,
ExposedPorts: []string{"2500/tcp", "9000/tcp", "1100/tcp"},
WaitingFor: wait.ForAll(
wait.NewHostPortStrategy("2500/tcp"),
wait.NewHostPortStrategy("9000/tcp"),
wait.NewHostPortStrategy("1100/tcp"),
wait.ForListeningPort("2500/tcp"),
wait.ForListeningPort("9000/tcp"),
wait.ForListeningPort("1100/tcp"),
),
}

Expand Down

0 comments on commit d229f43

Please sign in to comment.