This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit b2834fcde364ac2bf527c57999078bb9e7ebb07b Author: Pasquale Congiusti <[email protected]> AuthorDate: Thu Dec 22 15:14:00 2022 +0100 fix(test): unset env var --- e2e/namespace/install/cli/run_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/namespace/install/cli/run_test.go b/e2e/namespace/install/cli/run_test.go index 0a58bfac1..f853a76a3 100644 --- a/e2e/namespace/install/cli/run_test.go +++ b/e2e/namespace/install/cli/run_test.go @@ -78,7 +78,7 @@ func TestKamelCLIRun(t *testing.T) { // GIST does not like GITHUB_TOKEN apparently, we must temporary remove it os.Setenv("GITHUB_TOKEN_TMP", os.Getenv("GITHUB_TOKEN")) - os.Setenv("GITHUB_TOKEN", "") + os.Unsetenv("GITHUB_TOKEN") t.Run("Gist (ID)", func(t *testing.T) { name := "github-gist-id" @@ -106,7 +106,7 @@ func TestKamelCLIRun(t *testing.T) { // Revert GITHUB TOKEN os.Setenv("GITHUB_TOKEN", os.Getenv("GITHUB_TOKEN_TMP")) - os.Setenv("GITHUB_TOKEN_TMP", "") + os.Unsetenv("GITHUB_TOKEN_TMP") // Clean up Eventually(DeleteIntegrations(ns), TestTimeoutLong).Should(Equal(0))
