Update test after filter indexing

This commit is contained in:
TeoV
2018-07-05 06:45:19 -04:00
committed by Dan Christian Bogos
parent a113f52bc0
commit 8b9a5f4e4f
3 changed files with 16 additions and 14 deletions

View File

@@ -323,9 +323,10 @@ func (tS *ThresholdService) processEvent(args *ArgsProcessEvent) (thresholdsIDs
tS.stMux.Unlock()
}
}
if len(tIDs) != 0 {
thresholdsIDs = append(thresholdsIDs, tIDs...)
if len(tIDs) == 0 {
return nil, utils.ErrNotFound
}
thresholdsIDs = append(thresholdsIDs, tIDs...)
if withErrors {
err = utils.ErrPartiallyExecuted
}