Skip to content

Commit

Permalink
Removing artifacts from tests to check what would happen if HOME and …
Browse files Browse the repository at this point in the history
…XDG_CONFIG_HOME are undefined
  • Loading branch information
Jacob Biehler committed Aug 11, 2020
1 parent b7ede5a commit f56d0a6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cointop/common/pathutil/pathutil_test.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit f56d0a6

Please sign in to comment.