Fix test data

This commit is contained in:
Michael Schurter
2017-05-23 13:39:54 -07:00
parent 1295f88d03
commit 59b3ccaa8b

View File

@@ -113,7 +113,9 @@ func newTestHarness(t *testing.T, templates []*structs.Template, consul, vault b
// Build the task environment
a := mock.Alloc()
harness.envBuilder = env.NewBuilder(harness.node, a, a.Job.TaskGroups[0].Tasks[0], region)
task := a.Job.TaskGroups[0].Tasks[0]
task.Name = TestTaskName
harness.envBuilder = env.NewBuilder(harness.node, a, task, region)
// Make a tempdir
d, err := ioutil.TempDir("", "ct_test")