From 51aa4d26b75219bbf5c1decfb06827cc22c75544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Thu, 11 Jun 2026 13:14:25 +0200 Subject: [PATCH] test: ospf_point_to_multipoint: Adapt to yanger --- test/case/routing/ospf_point_to_multipoint/test.py | 6 +++--- test/case/routing/ospf_point_to_multipoint_hybrid/test.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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")