forked from espressif/esp-protocols
asio: fix asio test code to start the test after ip address received from common example code
Previously set to wait until IP address got from tcpip_adapter, but since common example connect code blocks until both IP4 and IPv6 address received it could happen that test code might have started connection to the ASIO counter-part while ESP32 still waiting for IPv6 address * Original commit: espressif/esp-idf@208feef3c9
This commit is contained in:
1 parent
ff7d214f9c
commit
98dfb691b6
4 files changed
+4
-4
No files matched your search
@@ -39,7 +39,7 @@ def test_examples_protocol_asio_udp_server(env, extra_data):
|
||||
# 1. start test
|
||||
dut1.start_app()
|
||||
# 2. get the server IP address
|
||||
data = dut1.expect(re.compile(r" sta ip: ([^,]+),"), timeout=30)
|
||||
data = dut1.expect(re.compile(r" IPv4 address: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)"), timeout=30)
|
||||
# 3. create tcp client and connect to server
|
||||
cli = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
cli.settimeout(30)
|
||||
|
||||
Reference in new issue
Block a user