Golang key management API server and library, based on SecuritySuite.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
367 B

package keystar_test
import (
"fmt"
"os"
"testing"
"github.com/joho/godotenv"
)
func TestMain(m *testing.M) {
if err := godotenv.Load(".tests.env"); err != nil {
if !os.IsNotExist(err) {
fmt.Println("WARNING: loading .env:", err)
}
}
if _, err := os.Stat("./testdata/fs"); !os.IsNotExist(err) {
os.RemoveAll("testdata/fs")
}
os.Exit(m.Run())
}