Fixed docker tests

This commit is contained in:
Diptanu Choudhury
2016-08-17 13:56:33 -07:00
parent 1d94641692
commit a446f416fd

View File

@@ -52,7 +52,7 @@ func dockerTask() (*structs.Task, int, int) {
"image": "busybox",
"load": []string{"busybox.tar"},
"command": "/bin/nc",
"args": []string{"-l", "127.0.0.1", "0"},
"args": []string{"-l", "127.0.0.1", "-p", "0"},
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
@@ -146,7 +146,7 @@ func TestDockerDriver_StartOpen_Wait(t *testing.T) {
"load": []string{"busybox.tar"},
"image": "busybox",
"command": "/bin/nc",
"args": []string{"-l", "127.0.0.1", "0"},
"args": []string{"-l", "127.0.0.1", "-p", "0"},
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
@@ -511,7 +511,7 @@ func TestDockerDriver_NetworkMode_Host(t *testing.T) {
"image": "busybox",
"load": []string{"busybox.tar"},
"command": "/bin/nc",
"args": []string{"-l", "127.0.0.1", "0"},
"args": []string{"-l", "127.0.0.1", "-p", "0"},
"network_mode": expected,
},
Resources: &structs.Resources{