Skip to content

Commit

Permalink
PR fix. Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bablzz committed Feb 14, 2020
1 parent 2e143f0 commit 3aaae5a
Showing 1 changed file with 34 additions and 29 deletions.
63 changes: 34 additions & 29 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ func TestContainerAttachedToNewNetwork(t *testing.T) {

func TestContainerWithHostNetworkOptions(t *testing.T) {
ctx := context.Background()
gcr := GenericContainerRequest{ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
},
gcr := GenericContainerRequest{
ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
},
Started: true,
}

Expand All @@ -120,12 +121,13 @@ func TestContainerWithHostNetworkOptions(t *testing.T) {

func TestContainerWithNetworkModeAndNetworkTogether(t *testing.T) {
ctx := context.Background()
gcr := GenericContainerRequest{ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
Networks: []string{"new-network"},
},
gcr := GenericContainerRequest{
ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
Networks: []string{"new-network"},
},
Started: true,
}

Expand All @@ -138,12 +140,13 @@ func TestContainerWithNetworkModeAndNetworkTogether(t *testing.T) {

func TestContainerWithHostNetworkOptionsAndWaitStrategy(t *testing.T) {
ctx := context.Background()
gcr := GenericContainerRequest{ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
WaitingFor: wait.ForListeningPort("80/tcp"),
},
gcr := GenericContainerRequest{
ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
WaitingFor: wait.ForListeningPort("80/tcp"),
},
Started: true,
}

Expand All @@ -168,12 +171,13 @@ func TestContainerWithHostNetworkOptionsAndWaitStrategy(t *testing.T) {
func TestContainerWithHostNetworkAndEndpoint(t *testing.T) {
nginxPort := "80/tcp"
ctx := context.Background()
gcr := GenericContainerRequest{ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
WaitingFor: wait.ForListeningPort(nat.Port(nginxPort)),
},
gcr := GenericContainerRequest{
ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
WaitingFor: wait.ForListeningPort(nat.Port(nginxPort)),
},
Started: true,
}

Expand All @@ -199,12 +203,13 @@ func TestContainerWithHostNetworkAndEndpoint(t *testing.T) {
func TestContainerWithHostNetworkAndPortEndpoint(t *testing.T) {
nginxPort := "80/tcp"
ctx := context.Background()
gcr := GenericContainerRequest{ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
WaitingFor: wait.ForListeningPort(nat.Port(nginxPort)),
},
gcr := GenericContainerRequest{
ContainerRequest: ContainerRequest{
Image: "nginx",
SkipReaper: true,
NetworkMode: "host",
WaitingFor: wait.ForListeningPort(nat.Port(nginxPort)),
},
Started: true,
}

Expand Down

0 comments on commit 3aaae5a

Please sign in to comment.