diff --git a/test/case/routing/ospf_point_to_multipoint/test.py b/test/case/routing/ospf_point_to_multipoint/test.py index 48c2ab63..f87e8443 100755 --- a/test/case/routing/ospf_point_to_multipoint/test.py +++ b/test/case/routing/ospf_point_to_multipoint/test.py @@ -321,9 +321,9 @@ with infamy.Test() as test: with test.step("Verify interface type is point-to-multipoint"): print("Checking OSPF interface type on all routers") - assert route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "point-to-multipoint" - assert route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "point-to-multipoint" - assert route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "point-to-multipoint" + until(lambda: route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "point-to-multipoint") + until(lambda: route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "point-to-multipoint") + until(lambda: route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "point-to-multipoint") with test.step("Verify connectivity between all DUTs"): _, hport1 = env.ltop.xlate("PC", "data1") diff --git a/test/case/routing/ospf_point_to_multipoint_hybrid/test.py b/test/case/routing/ospf_point_to_multipoint_hybrid/test.py index f067ad83..015710c8 100755 --- a/test/case/routing/ospf_point_to_multipoint_hybrid/test.py +++ b/test/case/routing/ospf_point_to_multipoint_hybrid/test.py @@ -314,9 +314,9 @@ with infamy.Test() as test: with test.step("Verify interface type is hybrid"): print("Checking OSPF interface type on all routers") - assert route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "hybrid" - assert route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "hybrid" - assert route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "hybrid" + until(lambda: route.ospf_get_interface_type(R1, "0.0.0.0", R1link) == "hybrid") + until(lambda: route.ospf_get_interface_type(R2, "0.0.0.0", "br0") == "hybrid") + until(lambda: route.ospf_get_interface_type(R3, "0.0.0.0", R3link) == "hybrid") with test.step("Verify connectivity between all DUTs"): _, hport1 = env.ltop.xlate("PC", "data1")