From de17c1cd8f76068df33bbed6f3f55903115a3329 Mon Sep 17 00:00:00 2001 From: Mauro Scomparin Date: Wed, 26 Feb 2020 22:27:08 +0100 Subject: [PATCH] like this? --- server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_test.go b/server_test.go index 7d269c3..e94b28e 100644 --- a/server_test.go +++ b/server_test.go @@ -19,7 +19,7 @@ func TestReadEnvVarReturnsDefaultValueWhenEnvVarNotSet(t *testing.T) { } func TestReadEnvVarReturnsTheExpectedValueWhenSet(t *testing.T) { - os.SetEnv(envVar, expectedValue) + os.Setenv(envVar, expectedValue) res := ReadEnvVar(envVar, defaultValue) if res != expectedValue { t.Errorf("Did not return the expected value set in the enviroinment variable") -- 2.25.1