[tests] fix bbr_5_11_01 random fails (#6589)

Set default BBR registration delay to 2. Defining a smaller BBR jitter
can help all TCs to be more robust.
This commit is contained in:
Simon Lin
2021-05-07 21:31:05 -07:00
committed by GitHub
parent 6f2b818381
commit 8dc9a53cc7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -138,6 +138,7 @@ DEFAULT_CHILD_TIMEOUT = 6
VIRTUAL_TIME = int(os.getenv('VIRTUAL_TIME', 0))
PARENT_AGGREGATIOIN_DELAY = 5
DUA_DAD_DELAY = 5
DEFAULT_BBR_REGISTRATION_JITTER = 2
LEADER_NOTIFY_SED_BY_CHILD_UPDATE_REQUEST = True
+1
View File
@@ -425,6 +425,7 @@ class TestCase(NcpSupportMixin, unittest.TestCase):
# BBRs must use thread version 1.2
assert params.get('version', '1.2') == '1.2', params
params['version'] = '1.2'
params.setdefault('bbr_registration_jitter', config.DEFAULT_BBR_REGISTRATION_JITTER)
elif params.get('is_host'):
# Hosts must not specify thread version
assert params.get('version', '') == '', params