From d4d872c05c65068dc413fe445d8448072fd4a442 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 27 Oct 2022 02:07:30 -0700 Subject: [PATCH] [test] increase wait time after `ether` re-enable (#8322) This commit increases the wait time in `test_single_border_router` after re-enabling `ether` link. It also changes the order of pings in the test (first ping from host to Thread router and the opposite direction). --- .../thread-cert/border_router/test_single_border_router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/thread-cert/border_router/test_single_border_router.py b/tests/scripts/thread-cert/border_router/test_single_border_router.py index 577b73ede..1028629df 100755 --- a/tests/scripts/thread-cert/border_router/test_single_border_router.py +++ b/tests/scripts/thread-cert/border_router/test_single_border_router.py @@ -270,7 +270,7 @@ class SingleBorderRouter(thread_cert.TestCase): # The routing manager may fail to send RS and will wait for 4 seconds # before retrying. - self.simulator.go(20) + self.simulator.go(40) self.collect_ipaddrs() logging.info("BR addrs: %r", br.get_addrs()) @@ -297,8 +297,8 @@ class SingleBorderRouter(thread_cert.TestCase): self.assertEqual(host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA), [host_ula_address]) # Router1 can ping to/from the Host on infra link. - self.assertTrue(router.ping(host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)[0])) self.assertTrue(host.ping(router.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], backbone=True)) + self.assertTrue(router.ping(host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)[0])) # # Case 5. Test if the linux host is still reachable if rejoin the network.