Skip to content

Commit

Permalink
[unit-test] properly configure operational dataset (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Jun 23, 2023
1 parent d967477 commit 68e66ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pylibs/unittests/test_commissioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ def testRawSetup(self):
n2 = ns.add("router")
n3 = ns.add("router")

ns.config_dataset(n1, panid=0xface, network_name="test", networkkey="00112233445566778899aabbccddeeff")
ns.node_cmd(n1, "dataset init new")
ns.node_cmd(n1, "dataset panid 0xface")
ns.node_cmd(n1, "dataset networkkey 00112233445566778899aabbccddeeff")
ns.node_cmd(n1, "dataset networkname test")
ns.node_cmd(n1, "dataset commit active")
ns.ifconfig_up(n1)
ns.thread_start(n1)

for id in (n2, n3):
ns.set_network_name(id, "test")
ns.set_panid(id, 0xface)
ns.set_networkkey(id, "00112233445566778899aabbccddeeff")
ns.config_dataset(id, panid=0xface, network_name="test", networkkey="00112233445566778899aabbccddeeff")
ns.ifconfig_up(id)
ns.thread_start(id)

Expand Down

0 comments on commit 68e66ea

Please sign in to comment.