1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

test: Unset user GNUPGHOME env var for gnuPGHome

Signed-off-by: uncenter <uncenter@uncenter.dev>
This commit is contained in:
uncenter
2026-02-03 10:49:44 -06:00
parent bf3b7a27d8
commit d8472ceaa2

View File

@@ -682,6 +682,7 @@ func Test_gpgBinary(t *testing.T) {
}
func Test_gnuPGHome(t *testing.T) {
t.Setenv("GNUPGHOME", "")
usr, err := user.Current()
if err == nil {
assert.Equal(t, filepath.Join(usr.HomeDir, ".gnupg"), gnuPGHome(""))