This commit is contained in:
2019-10-22 04:38:40 +05:00
parent f5b1f9d9f9
commit 61d34f3687
11 changed files with 51 additions and 16 deletions

View File

@@ -117,6 +117,7 @@ func TestEventerLaunchNotExistingEvent(t *testing.T) {
if err == nil {
t.Fatal("LaunchEvent() returned empty error!")
}
require.Nil(t, data)
Shutdown()

View File

@@ -33,6 +33,7 @@ func Initialize() {
// all further events mapping changes.
func InitializeCompleted() {
eventsInitialized = true
log.Println("Events initialization completed")
}
@@ -53,6 +54,7 @@ func LaunchEvent(eventName string, data interface{}) (interface{}, error) {
}
returnedData := handler.Handler(data)
return returnedData, nil
}