sarafu-vise/testutil/fsdb.go

22 lines
341 B
Go
Raw Normal View History

2025-01-20 11:28:42 +01:00
// +build testfsdb
package testutil
import (
"os"
)
func init() {
2025-01-21 15:14:52 +01:00
stateDir, err := os.MkdirTemp("", "sarafu-vise-menutraversal-state-")
2025-01-20 11:28:42 +01:00
if err != nil {
panic(err)
}
2025-01-21 15:14:52 +01:00
override.StateConn = &stateDir
userDir, err := os.MkdirTemp("", "sarafu-vise-menutraversal-user-")
2025-01-20 11:28:42 +01:00
if err != nil {
panic(err)
}
2025-01-21 15:14:52 +01:00
override.UserConn = &userDir
2025-01-20 11:28:42 +01:00
}