sd
This commit is contained in:
parent
0df5921614
commit
0d1867caf7
|
@ -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)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user