From 39477d5650b55390f8759302b28b84a8ae33889d Mon Sep 17 00:00:00 2001 From: Shreyas Goenka <shreyas.goenka@databricks.com> Date: Wed, 29 Jan 2025 12:55:58 +0100 Subject: [PATCH] - --- acceptance/acceptance_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/acceptance/acceptance_test.go b/acceptance/acceptance_test.go index 759a7da1e..c5c7f91b4 100644 --- a/acceptance/acceptance_test.go +++ b/acceptance/acceptance_test.go @@ -177,13 +177,8 @@ func getTests(t *testing.T) []string { return testDirs } +// In case of duplicate keys in env, the last is applicable when spawning a process. func setEnv(env []string, key, value string) []string { - for i, pair := range env { - if strings.HasPrefix(pair, key+"=") { - env[i] = key + "=" + value - return env - } - } return append(env, key+"="+value) }