Skip to content

Commit

Permalink
Fix mobile unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Sep 3, 2023
1 parent fa3d943 commit 68d1036
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions contrib/mobile/mobile_test.go
Original file line number Diff line number Diff line change
@@ -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)
}
Expand Down

0 comments on commit 68d1036

Please sign in to comment.