From ec693fc5f84b1b6a7313ec18117a30d64d64c68e Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Thu, 22 Apr 2021 17:32:31 +0200 Subject: [PATCH] Fir port display assertion, Docker engine returns 2 entries in container inspect Signed-off-by: Guillaume Tardif --- local/e2e/container/container_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/e2e/container/container_test.go b/local/e2e/container/container_test.go index 6bb43df97..ff4582ae8 100644 --- a/local/e2e/container/container_test.go +++ b/local/e2e/container/container_test.go @@ -103,7 +103,7 @@ func TestLocalBackendRun(t *testing.T) { nginxFound = true assert.Equal(t, fields[1], "nginx:alpine", res.Combined()) assert.Equal(t, fields[2], "/docker-entrypoint.sh", res.Combined()) - assert.Equal(t, fields[len(fields)-1], "0.0.0.0:85->80/tcp", res.Combined()) + assert.Assert(t, strings.Contains(fields[len(fields)-1], ":85->80/tcp"), res.Combined()) } } assert.Assert(t, nginxFound, res.Stdout())