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})