From c6c7fcf62055bf899d173be449087e85617c94c3 Mon Sep 17 00:00:00 2001 From: Geoff Flarity Date: Thu, 28 Sep 2023 11:33:12 -0400 Subject: [PATCH] fix TestContainerRunningCheckingStatusCode to pass on arm platforms (#1693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix TestContainerRunningCheckingStatusCode to pass on arm platforms * Update docker_test.go Co-authored-by: Manuel de la Peña --------- Co-authored-by: Manuel de la Peña --- docker_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker_test.go b/docker_test.go index de607826d4..463b6e2968 100644 --- a/docker_test.go +++ b/docker_test.go @@ -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 {