'Wait up to `delay` sec to assure that expected failure `count` reached'

def waitFailTotal(self, count, delay=1.0):

    ret = Utils.wait_for((lambda : ((self.filter.failManager.getFailTotal() >= (self._failTotal + count)) and self.jail.isFilled())), _maxWaitTime(delay))
    self._failTotal += count
    return ret
