From a446f416fd6e820bd3565015de29d313a118cd28 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 17 Aug 2016 13:56:33 -0700 Subject: [PATCH] Fixed docker tests --- client/driver/docker_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/driver/docker_test.go b/client/driver/docker_test.go index 1bcc88fd3..558ece2a2 100644 --- a/client/driver/docker_test.go +++ b/client/driver/docker_test.go @@ -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{