mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 04:52:18 +02:00
asio example tests: Increase timeout for DHCP lease to 30s
Covers time to connect to WiFi and negotiate lease, may be more than 5-10s on some busy APs * Original commit: espressif/esp-idf@8b35d8ef25
This commit is contained in:
@ -37,7 +37,7 @@ def test_examples_protocol_asio_chat_server(env, extra_data):
|
||||
# 1. start test
|
||||
dut1.start_app()
|
||||
# 2. get the server IP address
|
||||
data = dut1.expect(re.compile(r" sta ip: ([^,]+),"))
|
||||
data = dut1.expect(re.compile(r" sta ip: ([^,]+),"), timeout=30)
|
||||
# 3. create tcp client and connect to server
|
||||
cli = socket(AF_INET,SOCK_STREAM)
|
||||
cli.connect((data[0],80))
|
||||
|
Reference in New Issue
Block a user