Increase batch notifier interval in unit tests
Change batch notifier interval to 0.2 seconds to better let the test enqueue events under that time interval, to avoid issue seen in requirements repo changes. Closes-bug: #2100806 Change-Id: I73f6f51e33c3289ddae0125cdad79e4d8e031d70
This commit is contained in:
@@ -26,7 +26,7 @@ class TestBatchNotifier(base.BaseTestCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self._received_events = queue.Queue()
|
||||
self.notifier = batch_notifier.BatchNotifier(0.1, self._queue_events)
|
||||
self.notifier = batch_notifier.BatchNotifier(0.2, self._queue_events)
|
||||
self.spawn_n_p = mock.patch.object(utils, 'spawn_n')
|
||||
|
||||
def _queue_events(self, events):
|
||||
|
||||
Reference in New Issue
Block a user