mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 21:57:47 +00:00
[test] relax wait time in test_nat64_multi_border_routers.py (#7660)
This commit increases the wait time in `nat64_multi_border_routers` test to accommodate for the fact that prefixes are added and removed using `NetworkData::Publisher` which can add additional initial random wait time (before adding the prefix into network data).
This commit is contained in:
committed by
Jonathan Hui
parent
d53bcde890
commit
8440b5f85d
@@ -105,6 +105,7 @@ class Nat64MultiBorderRouter(thread_cert.TestCase):
|
||||
self.assertEqual('router', br2.get_state())
|
||||
|
||||
# Only 1 NAT64 prefix in Network Data.
|
||||
self.simulator.go(30)
|
||||
self.assertEqual(len(br1.get_netdata_nat64_prefix()), 1)
|
||||
self.assertEqual(len(br2.get_netdata_nat64_prefix()), 1)
|
||||
self.assertEqual(br1.get_netdata_nat64_prefix()[0], br2.get_netdata_nat64_prefix()[0])
|
||||
@@ -120,7 +121,7 @@ class Nat64MultiBorderRouter(thread_cert.TestCase):
|
||||
# Case 2. Disable and re-enable border routing on BR1.
|
||||
#
|
||||
br1.disable_br()
|
||||
self.simulator.go(5)
|
||||
self.simulator.go(30)
|
||||
|
||||
# BR1 withdraws its prefix and BR2 advertises its prefix.
|
||||
self.assertEqual(len(br1.get_netdata_nat64_prefix()), 1)
|
||||
@@ -128,7 +129,7 @@ class Nat64MultiBorderRouter(thread_cert.TestCase):
|
||||
self.assertNotEqual(br1_nat64_prefix, br1.get_netdata_nat64_prefix()[0])
|
||||
|
||||
br1.enable_br()
|
||||
self.simulator.go(5)
|
||||
self.simulator.go(30)
|
||||
|
||||
# NAT64 prefix in Network Data is still advertised by BR2.
|
||||
self.assertEqual(len(br1.get_netdata_nat64_prefix()), 1)
|
||||
|
||||
Reference in New Issue
Block a user