This commit is contained in:
geek 2017-05-16 15:52:20 +09:00
parent 0df5921614
commit 0d1867caf7

View File

@ -13,8 +13,11 @@ func TestEventSender_Start(t *testing.T) {
//observer.Notify("CONFIGMANAGER_LOADED", nil) //observer.Notify("CONFIGMANAGER_LOADED", nil)
c := make(chan bool) c := make(chan bool,1)
err := Start(c) err := Start(c)
<- c
if err != nil { if err != nil {
log.Println("err: ", err) log.Println("err: ", err)
} }
@ -22,7 +25,7 @@ func TestEventSender_Start(t *testing.T) {
testNotify() testNotify()
time.Sleep(time.Second * 100) time.Sleep(time.Second * 5)
} }