From f8204031f1b557bc2372f498487de654b7f544a4 Mon Sep 17 00:00:00 2001 From: Carlos Lima Date: Wed, 4 Jun 2025 08:40:05 +0800 Subject: [PATCH] Fix tests deleting XDG_DATA_HOME That includes ~/.local/share/keyrings which was the most immediatelly visible effect. Signed-off-by: Carlos Lima --- pkg/plugin/installer/local_installer_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/plugin/installer/local_installer_test.go b/pkg/plugin/installer/local_installer_test.go index b28920af4..9effcd2c4 100644 --- a/pkg/plugin/installer/local_installer_test.go +++ b/pkg/plugin/installer/local_installer_test.go @@ -20,12 +20,14 @@ import ( "path/filepath" "testing" + "helm.sh/helm/v4/internal/test/ensure" "helm.sh/helm/v4/pkg/helmpath" ) var _ Installer = new(LocalInstaller) func TestLocalInstaller(t *testing.T) { + ensure.HelmHome(t) // Make a temp dir tdir := t.TempDir() if err := os.WriteFile(filepath.Join(tdir, "plugin.yaml"), []byte{}, 0644); err != nil {