mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-17 04:22:14 +02:00
asio: added socket timeout for example tests
* Original commit: espressif/esp-idf@c0186858ad
This commit is contained in:
@ -41,6 +41,7 @@ def test_examples_protocol_asio_tcp_server(env, extra_data):
|
||||
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.settimeout(30)
|
||||
cli.connect((data[0],80))
|
||||
cli.send(test_msg)
|
||||
data = cli.recv(1024)
|
||||
|
Reference in New Issue
Block a user