From: Mauro Scomparin Date: Wed, 26 Feb 2020 21:27:08 +0000 (+0100) Subject: like this? X-Git-Url: https://git.scompo.it/?a=commitdiff_plain;h=de17c1cd8f76068df33bbed6f3f55903115a3329;p=static-server.git like this? --- 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")