From ee6998f4143c2c1d94327c1550d4e806ac245843 Mon Sep 17 00:00:00 2001 From: Esko Dijk Date: Sun, 9 Jun 2024 11:54:19 +0200 Subject: [PATCH] [pylibs] fix raw test_commissioning by giving more time for nodes to scan channels. --- pylibs/unittests/test_commissioning.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pylibs/unittests/test_commissioning.py b/pylibs/unittests/test_commissioning.py index 06c31555..eacc3d42 100755 --- a/pylibs/unittests/test_commissioning.py +++ b/pylibs/unittests/test_commissioning.py @@ -50,11 +50,11 @@ def testRawNoSetup(self): def testRawSetup(self): ns = self.ns - ns.web() n1 = ns.add("router") n2 = ns.add("router") n3 = ns.add("router") + # n1 with full dataset becomes Leader. ns.node_cmd(n1, "dataset init new") ns.node_cmd(n1, "dataset panid 0xface") ns.node_cmd(n1, "dataset networkkey 00112233445566778899aabbccddeeff") @@ -63,14 +63,15 @@ def testRawSetup(self): ns.node_cmd(n1, "dataset commit active") ns.ifconfig_up(n1) ns.thread_start(n1) - ns.go(10) + # n2, n3 with partial dataset will scan channels to find n1. + # This can take some time. for id in (n2, n3): ns.config_dataset(id, panid=0xface, network_name="test", networkkey="00112233445566778899aabbccddeeff") ns.ifconfig_up(id) ns.thread_start(id) - self.go(60) + self.go(250) self.assertFormPartitions(1) def testCommissioning(self):