Skip to content

Commit

Permalink
Fix test data
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed May 23, 2017
1 parent 1295f88 commit 59b3cca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/consul_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 59b3cca

Please sign in to comment.