diff --git a/pkg/testutils/dockerutils/builder.go b/pkg/testutils/dockerutils/builder.go index ba5edcd..5e2cc8a 100644 --- a/pkg/testutils/dockerutils/builder.go +++ b/pkg/testutils/dockerutils/builder.go @@ -39,7 +39,7 @@ func (builder *Builder) AddLabel(key string, value string) *Builder { func (builder *Builder) Env(env map[string]string) *Builder { builder.containerConfig.Labels = make(map[string]string) for key, value := range env { - builder.containerConfig.Labels[key] = value + builder.containerConfig.Env = append(builder.containerConfig.Env, fmt.Sprintf("%v=%v", key, value)) } return builder }