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