tests: Fix race between SetBucketListenerConfig and eventNotifyForBucketNotifications (#3041)

This commit is contained in:
Harshavardhana 2016-10-22 02:35:33 -07:00 committed by GitHub
parent f2b0c08e34
commit 4b5b363c6c

View File

@ -211,7 +211,6 @@ func (en *eventNotifier) SetBucketListenerConfig(bucket string, lcfg []listenerC
} else {
en.internal.listenerConfigs[bucket] = lcfg
}
en.internal.targets = make(map[string]*listenerLogger)
for _, elcArr := range en.internal.listenerConfigs {
for _, elcElem := range elcArr {
currArn := elcElem.TopicConfig.TopicARN