Skip to content

Commit 0c10319

Browse files
author
V
committed
fix: make default database path test portable
1 parent 9d266b8 commit 0c10319

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/cli/root_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func TestCLIReturnsDefaultDBDirectoryCreationError(t *testing.T) {
148148
t.Fatalf("write home file: %v", err)
149149
}
150150
t.Setenv("HOME", homeAsFile)
151+
t.Setenv("XDG_CONFIG_HOME", filepath.Join(homeAsFile, ".config"))
151152
t.Setenv("APPSUMO_DB_PATH", "")
152153

153154
var out, errOut bytes.Buffer

0 commit comments

Comments
 (0)