From 019268ddedd2a212a8da54c3d0c9cad7c3e12e26 Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Fri, 9 Oct 2020 09:39:00 +0200 Subject: [PATCH] Fix e2e tests on comparing with empty string Signed-off-by: Ulysses Souza --- tests/aci-e2e/e2e-aci_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/aci-e2e/e2e-aci_test.go b/tests/aci-e2e/e2e-aci_test.go index 572aa7a31..c7f32e078 100644 --- a/tests/aci-e2e/e2e-aci_test.go +++ b/tests/aci-e2e/e2e-aci_test.go @@ -404,7 +404,7 @@ func TestContainerRunAttached(t *testing.T) { assert.Assert(t, is.Len(containerInspect.Ports, 1)) port := containerInspect.Ports[0] - assert.Assert(t, len(port.HostIP) > 0) + assert.Assert(t, port.HostIP != "") assert.Equal(t, port.ContainerPort, uint32(80)) assert.Equal(t, port.HostPort, uint32(80)) assert.Equal(t, containerInspect.Config.FQDN, fqdn)