client/driver/env: fix optional meta test
This commit is contained in:
parent
c65882cafd
commit
3aa6241b5c
1
client/driver/env/env_test.go
vendored
1
client/driver/env/env_test.go
vendored
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue