chore: add more tests (#3279)

This commit is contained in:
Kevin Wan
2023-05-24 23:58:45 +08:00
committed by GitHub
parent ef26b39b4c
commit 4a2a8d9e45
6 changed files with 158 additions and 89 deletions

View File

@@ -45,8 +45,7 @@ func TestPropertiesEnv(t *testing.T) {
assert.Nil(t, err)
defer os.Remove(tmpfile)
os.Setenv("FOO", "2")
defer os.Unsetenv("FOO")
t.Setenv("FOO", "2")
props, err := LoadProperties(tmpfile, UseEnv())
assert.Nil(t, err)