From 5c95e7f0dc015abac7f3ca595d67e6efa824f482 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Sat, 14 Nov 2015 22:16:32 -0800 Subject: [PATCH] Fixed the client tests --- client/task_runner_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/task_runner_test.go b/client/task_runner_test.go index 751d00fa9..67e098783 100644 --- a/client/task_runner_test.go +++ b/client/task_runner_test.go @@ -46,7 +46,7 @@ func testTaskRunner() (*MockTaskStateUpdater, *TaskRunner) { // Initialize the port listing. This should be done by the offer process but // we have a mock so that doesn't happen. - task.Resources.Networks[0].ReservedPorts = []int{80} + task.Resources.Networks[0].ReservedPorts = []structs.Port{{"", 80}} allocDir := allocdir.NewAllocDir(filepath.Join(conf.AllocDir, alloc.ID)) allocDir.Build([]*structs.Task{task})