bugfix: override image.Env with process.Env, rather than be contrary
Signed-off-by: Yangyang <1032120121@163.com>
This commit is contained in:
@@ -406,7 +406,7 @@ func TestWithImageConfigArgs(t *testing.T) {
|
||||
WithImageConfigArgs(img, []string{"--boo", "bar"}),
|
||||
}
|
||||
|
||||
expectedEnv := []string{"x=foo", "y=baz", "z=bar"}
|
||||
expectedEnv := []string{"z=bar", "y=boo", "x=foo"}
|
||||
expectedArgs := []string{"create", "--namespace=test", "--boo", "bar"}
|
||||
|
||||
for _, opt := range opts {
|
||||
|
||||
Reference in New Issue
Block a user