5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 14:05:41 +00:00

Fix mobile unit test

This commit is contained in:
Neil Alexander 2023-09-03 13:30:46 +01:00
parent fa3d943ba9
commit 68d1036de8
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -1,9 +1,21 @@
package mobile
import "testing"
import (
"os"
"testing"
"github.com/gologme/log"
)
func TestStartYggdrasil(t *testing.T) {
ygg := &Yggdrasil{}
logger := log.New(os.Stdout, "", 0)
logger.EnableLevel("error")
logger.EnableLevel("warn")
logger.EnableLevel("info")
ygg := &Yggdrasil{
logger: logger,
}
if err := ygg.StartAutoconfigure(); err != nil {
t.Fatalf("Failed to start Yggdrasil: %s", err)
}