test: isolate appdir environment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user