From 3aa6241b5c521cca1aa802997fab83d23274997b Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 11 Jun 2018 12:29:13 -0400 Subject: [PATCH] client/driver/env: fix optional meta test --- client/driver/env/env_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/driver/env/env_test.go b/client/driver/env/env_test.go index 35a703292..8214bacb2 100644 --- a/client/driver/env/env_test.go +++ b/client/driver/env/env_test.go @@ -382,6 +382,7 @@ func TestEnvironment_InterpolateEmptyOptionalMeta(t *testing.T) { a.Job.ParameterizedJob = &structs.ParameterizedJobConfig{ MetaOptional: []string{"metaopt1", "metaopt2"}, } + a.Job.Dispatched = true task := a.Job.TaskGroups[0].Tasks[0] task.Meta = map[string]string{"metaopt1": "metaopt1val"} env := NewBuilder(mock.Node(), a, task, "global").Build()