From 9de99a8efa079add11aa95a32093edcfc84623ce Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 18 Feb 2020 09:53:05 -0800 Subject: [PATCH] [toranj] fix the check for router entry "is link established" (#4566) --- tests/toranj/test-012-multi-hop-traffic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/toranj/test-012-multi-hop-traffic.py b/tests/toranj/test-012-multi-hop-traffic.py index 4ad13ba6c..74a87999f 100644 --- a/tests/toranj/test-012-multi-hop-traffic.py +++ b/tests/toranj/test-012-multi-hop-traffic.py @@ -141,7 +141,7 @@ def check_r1_router_table(): wpan.WPAN_THREAD_ROUTER_TABLE)) verify(len(router_table) == NUM_ROUTERS) for entry in router_table: - verify(entry.rloc16 == r1_rloc or entry.is_link_established or + verify(entry.rloc16 == r1_rloc or entry.is_link_established() or entry.next_hop != INVALID_ROUTER_ID)