From f15b49e8f0d68597b3a5f0b620eb29a0394af4e7 Mon Sep 17 00:00:00 2001 From: Gianluca Arbezzano Date: Tue, 16 Jun 2020 12:11:27 +0200 Subject: [PATCH] wait strategy where not properly set For a couple of tests the wait strategy where not properly set. I am trying to figure out if it makes the test suite to pass --- docker_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker_test.go b/docker_test.go index d75022e6de..5a6c27db8d 100644 --- a/docker_test.go +++ b/docker_test.go @@ -104,6 +104,7 @@ func TestContainerWithHostNetworkOptions(t *testing.T) { ExposedPorts: []string{ "80/tcp", }, + WaitingFor: wait.ForListeningPort("80/tcp"), }, Started: true, } @@ -471,6 +472,7 @@ func TestTwoContainersExposingTheSamePort(t *testing.T) { ExposedPorts: []string{ "80/tcp", }, + WaitingFor: wait.ForListeningPort("80/tcp"), }, Started: true, }) @@ -528,6 +530,7 @@ func TestContainerCreation(t *testing.T) { ExposedPorts: []string{ nginxPort, }, + WaitingFor: wait.ForListeningPort("80/tcp"), }, Started: true, }) @@ -587,8 +590,9 @@ func TestContainerCreationWithName(t *testing.T) { ExposedPorts: []string{ nginxPort, }, - Name: creationName, - Networks: []string{"bridge"}, + WaitingFor: wait.ForListeningPort("80/tcp"), + Name: creationName, + Networks: []string{"bridge"}, }, Started: true, })