test: isolate appdir environment

This commit is contained in:
Bjarne Øverli
2026-07-05 13:50:51 +02:00
parent 7e6a637dda
commit 5cf895eeb1
11 changed files with 123 additions and 0 deletions
+3
View File
@@ -15,6 +15,9 @@ import (
var sharedPlayer player.Engine
func TestMain(m *testing.M) {
os.Unsetenv("CLIAMP_CONFIG_DIR")
os.Unsetenv("XDG_CONFIG_HOME")
sr := player.DeviceSampleRate()
if sr <= 0 {
sr = 44100