Skip to content

Commit

Permalink
wait strategy where not properly set
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Gianluca Arbezzano committed Jun 16, 2020
1 parent 123ab0b commit f15b49e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func TestContainerWithHostNetworkOptions(t *testing.T) {
ExposedPorts: []string{
"80/tcp",
},
WaitingFor: wait.ForListeningPort("80/tcp"),
},
Started: true,
}
Expand Down Expand Up @@ -471,6 +472,7 @@ func TestTwoContainersExposingTheSamePort(t *testing.T) {
ExposedPorts: []string{
"80/tcp",
},
WaitingFor: wait.ForListeningPort("80/tcp"),
},
Started: true,
})
Expand Down Expand Up @@ -528,6 +530,7 @@ func TestContainerCreation(t *testing.T) {
ExposedPorts: []string{
nginxPort,
},
WaitingFor: wait.ForListeningPort("80/tcp"),
},
Started: true,
})
Expand Down Expand Up @@ -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,
})
Expand Down

0 comments on commit f15b49e

Please sign in to comment.