From 637b9c453161bfd551e0c04db78109d3d452a69a Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Thu, 8 Dec 2016 05:19:14 +0100 Subject: BFD: handle timing wheel prematurely firing events Improve handling of timeouts. Add a workaround for when timing wheel fires an event a tiny amount of time before it should actually be fired. Don't delete unneeded events at all from timing wheel, instead ignoring unexpected events. Enable the skipped BFD test, which passes now. Change-Id: I6ffd4fc0ba7a049ffe63bb0e5290641a7300dd6f Signed-off-by: Klement Sekera --- test/test_bfd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test_bfd.py b/test/test_bfd.py index b48c3cc4..bf0e88dd 100644 --- a/test/test_bfd.py +++ b/test/test_bfd.py @@ -252,14 +252,14 @@ class BFDTestCase(VppTestCase): e = self.vapi.wait_for_event(1, "bfd_udp_session_details") self.verify_event(e, expected_state=BFDState.down) - @unittest.skip("this test is not working yet") def test_large_required_min_rx(self): + """ large remote RequiredMinRxInterval """ self.bfd_session_up() - interval = 5000000 + interval = 3000000 self.test_session.update(required_min_rx_interval=interval) self.test_session.send_packet() now = time.time() - count = 1 + count = 0 while time.time() < now + interval / 1000000: try: p = self.wait_for_bfd_packet() -- cgit 1.2.3-korg