From f56d0a61b1dd395244ef7faacea5234230257579 Mon Sep 17 00:00:00 2001 From: Jacob Biehler Date: Tue, 11 Aug 2020 09:48:49 -0700 Subject: [PATCH] Removing artifacts from tests to check what would happen if HOME and XDG_CONFIG_HOME are undefined --- cointop/common/pathutil/pathutil_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cointop/common/pathutil/pathutil_test.go b/cointop/common/pathutil/pathutil_test.go index 954ac0b3..3c5146e3 100644 --- a/cointop/common/pathutil/pathutil_test.go +++ b/cointop/common/pathutil/pathutil_test.go @@ -15,15 +15,9 @@ func TestNormalizePath(t *testing.T) { }{ {"~/.config/cointop/config.toml", filepath.Join(configDir, "/cointop/config.toml")}, {"~/.config/cointop/config.toml", filepath.Join(home, ".config/cointop/config.toml")}, - {"~/.config/cointop/config.toml", filepath.Join(configDir, "/cointop/config.toml")}, - {"~/.config/cointop/config.toml", filepath.Join(home, ".config/cointop/config.toml")}, } - for i, c := range cases { + for _, c := range cases { got := NormalizePath(c.in) - if i > 1 { - home = "" - configDir = "" - } if got != c.want { t.Errorf("NormalizePath(%q) == %q, want %q", c.in, got, c.want) }