Skip to content

Commit

Permalink
fix TestContainerRunningCheckingStatusCode to pass on arm platforms (#…
Browse files Browse the repository at this point in the history
…1693)

* fix TestContainerRunningCheckingStatusCode to pass on arm platforms

* Update docker_test.go

Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>

---------

Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
  • Loading branch information
gflarity and mdelapenya authored Sep 28, 2023
1 parent 429cc9b commit c6c7fcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1836,8 +1836,9 @@ func TestContainerCapAdd(t *testing.T) {
func TestContainerRunningCheckingStatusCode(t *testing.T) {
ctx := context.Background()
req := ContainerRequest{
Image: "influxdb:1.8.10-alpine",
ExposedPorts: []string{"8086/tcp"},
Image: "influxdb:1.8.10-alpine",
ExposedPorts: []string{"8086/tcp"},
ImagePlatform: "linux/amd64", // influxdb doesn't provide an alpine+arm build (https://github.com/influxdata/influxdata-docker/issues/335)
WaitingFor: wait.ForAll(
wait.ForHTTP("/ping").WithPort("8086/tcp").WithStatusCodeMatcher(
func(status int) bool {
Expand Down

0 comments on commit c6c7fcf

Please sign in to comment.