mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-22 16:07:31 +00:00
Fix mobile unit test
This commit is contained in:
parent
fa3d943ba9
commit
68d1036de8
@ -1,9 +1,21 @@
|
|||||||
package mobile
|
package mobile
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/gologme/log"
|
||||||
|
)
|
||||||
|
|
||||||
func TestStartYggdrasil(t *testing.T) {
|
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 {
|
if err := ygg.StartAutoconfigure(); err != nil {
|
||||||
t.Fatalf("Failed to start Yggdrasil: %s", err)
|
t.Fatalf("Failed to start Yggdrasil: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user