From 71c83f43934a9de219c450e993f81302abec682e Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Mon, 3 Mar 2025 16:43:43 -0500 Subject: [PATCH] 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 --- neutron/tests/unit/notifiers/test_batch_notifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/unit/notifiers/test_batch_notifier.py b/neutron/tests/unit/notifiers/test_batch_notifier.py index 6f9d300d784..362a5eeb703 100644 --- a/neutron/tests/unit/notifiers/test_batch_notifier.py +++ b/neutron/tests/unit/notifiers/test_batch_notifier.py @@ -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):