Skip to content

Commit

Permalink
Merge pull request #215 from testcontainers/chore/set-wait-strategy-i…
Browse files Browse the repository at this point in the history
…n-tests

wait strategy where not properly set
  • Loading branch information
gianarb authored Jun 16, 2020
2 parents 123ab0b + f15b49e commit 09610fb
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 09610fb

Please sign in to comment.