Fix tests deleting XDG_DATA_HOME

That includes ~/.local/share/keyrings which was the most immediatelly
visible effect.

Signed-off-by: Carlos Lima <carlos@cpan.org>
pull/30955/head
Carlos Lima 4 months ago
parent c0aa690c90
commit f8204031f1

@ -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 {

Loading…
Cancel
Save