From d58c4bd9ced574ab14341b9e52f3ef6e55cecd65 Mon Sep 17 00:00:00 2001 From: Paul Schifferer Date: Fri, 25 Oct 2024 22:40:14 -0700 Subject: [PATCH] Fix test --- util/env_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/env_test.go b/util/env_test.go index 04698c9..8568245 100644 --- a/util/env_test.go +++ b/util/env_test.go @@ -6,30 +6,30 @@ import ( ) func TestGetEnv(t *testing.T) { - os.Setenv("TEST", "value") - value := GetEnv("TEST", "default") + os.Setenv("TGE", "value") + value := GetEnv("TGE", "default") if value != "value" { t.Fail() } } func TestGetEnvDefault(t *testing.T) { - value := GetEnv("TEST", "default") + value := GetEnv("TGED", "default") if value != "default" { t.Fail() } } func TestGetEnvInt(t *testing.T) { - os.Setenv("TEST", "1234") - value := GetEnvInt("TEST", 5678) + os.Setenv("TGEI", "1234") + value := GetEnvInt("TGEI", 5678) if value != 1234 { t.Fail() } } func TestGetEnvIntDefault(t *testing.T) { - value := GetEnvInt("TEST", 5678) + value := GetEnvInt("TGEID", 5678) if value != 5678 { t.Fail() }