summaryrefslogtreecommitdiff
path: root/internal/timer/operations_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/timer/operations_test.go')
-rw-r--r--internal/timer/operations_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/timer/operations_test.go b/internal/timer/operations_test.go
index 557631c..efdc492 100644
--- a/internal/timer/operations_test.go
+++ b/internal/timer/operations_test.go
@@ -13,10 +13,8 @@ import (
func setup(t *testing.T) {
t.Helper()
tempDir := t.TempDir()
- StateFilePathOverride = filepath.Join(tempDir, ".timr_state")
- t.Cleanup(func() {
- StateFilePathOverride = ""
- })
+ t.Setenv("XDG_CONFIG_HOME", tempDir)
+ t.Setenv("HOME", tempDir)
}
func TestStartTimer(t *testing.T) {