Skip to content

Commit 40d7ea6

Browse files
committed
Merge branch 'bugfix/ci_softap_example_test' into 'master'
Set sleep time to allow wlan0 to connect to softap See merge request espressif/esp-idf!9258
2 parents 440574d + 76232fd commit 40d7ea6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/provisioning/legacy/softap_prov/softap_prov_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_examples_provisioning_softap(env, extra_data):
5555
ctrl = wifi_tools.wpa_cli(iface, reset_on_exit=True)
5656
print("Connecting to DUT SoftAP...")
5757
ip = ctrl.connect(ssid, password)
58-
got_ip = dut1.expect(re.compile(r"DHCP server assigned IP to a station, IP is: (\d+.\d+.\d+.\d+)"), timeout=30)[0]
58+
got_ip = dut1.expect(re.compile(r"DHCP server assigned IP to a station, IP is: (\d+.\d+.\d+.\d+)"), timeout=45)[0]
5959
if ip != got_ip:
6060
raise RuntimeError("SoftAP connected to another host! " + ip + "!=" + got_ip)
6161
print("Connected to DUT SoftAP")

tools/ci/python_packages/wifi_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,17 @@ def connect(self, ssid, password):
7171

7272
self.new_network = self.iface_ifc.AddNetwork({"ssid": ssid, "psk": password})
7373
self.iface_ifc.SelectNetwork(self.new_network)
74+
time.sleep(10)
7475

7576
ip = None
7677
retry = 10
7778
while retry > 0:
78-
time.sleep(5)
7979
ip = get_wiface_IPv4(self.iface_name)
8080
if ip is not None:
8181
self.connected = True
8282
return ip
8383
retry -= 1
84+
time.sleep(3)
8485

8586
self.reset()
8687
raise RuntimeError('wpa_cli : Connection failed')

0 commit comments

Comments
 (0)