sarafu-vise/testutil/fsdb.go
2025-01-21 14:14:52 +00:00

22 lines
341 B
Go

// +build testfsdb
package testutil
import (
"os"
)
func init() {
stateDir, err := os.MkdirTemp("", "sarafu-vise-menutraversal-state-")
if err != nil {
panic(err)
}
override.StateConn = &stateDir
userDir, err := os.MkdirTemp("", "sarafu-vise-menutraversal-user-")
if err != nil {
panic(err)
}
override.UserConn = &userDir
}