like this?
authorMauro Scomparin <scompo@gmail.com>
Wed, 26 Feb 2020 21:27:08 +0000 (22:27 +0100)
committerMauro Scomparin <scompo@gmail.com>
Wed, 26 Feb 2020 21:27:08 +0000 (22:27 +0100)
server_test.go

index 7d269c3aadba1a6c50f5cf1816e4c5b21b6e11e8..e94b28e1e92a0e979202cd8991aaf13832d5617c 100644 (file)
@@ -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")