Merge pull request #6685 from donaldsharp/fix_rare_ospf_test_failure

tests: Fix rare case in ospf tests due to small hello timer
This commit is contained in:
Mark Stapp 2020-07-07 10:38:26 -04:00 committed by GitHub
commit 3a298c75fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -599,6 +599,7 @@ def test_ospfv2_interfaces():
# Drop time in next due
actual = re.sub(r"Hello due in [0-9\.]+s", "Hello due in XX.XXXs", actual)
actual = re.sub(r"Hello due in [0-9\.]+ usecs", "Hello due in XX.XXXs", actual)
# Fix 'MTU mismatch detection: enabled' vs 'MTU mismatch detection:enabled' - accept both
actual = re.sub(r"MTU mismatch detection:([a-z]+.*)", r"MTU mismatch detection: \1", actual)
# Fix newlines (make them all the same)