[tests] properly configure operational dataset in BR tests (#9209)

This commit is contained in:
Jonathan Hui
2023-06-26 22:23:53 -07:00
committed by GitHub
parent 8e9bbbc88e
commit 3901e29e89
2 changed files with 27 additions and 6 deletions
+6 -1
View File
@@ -2557,8 +2557,13 @@ class NodeImpl:
panid=None,
pskc=None,
security_policy=[],
updateExisting=False,
):
self.send_command('dataset clear', go=False)
if updateExisting:
self.send_command('dataset init active', go=False)
else:
self.send_command('dataset clear', go=False)
self._expect_done()
if timestamp is not None: