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
pull/2237/merge
Angus Gratton 2018-08-03 16:59:23 +10:00 zatwierdzone przez Angus Gratton
rodzic 6bd58beac5
commit 8b35d8ef25
4 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -75,7 +75,7 @@ def test_examples_protocol_asio_chat_client(env, extra_data):
thread1.start()
# 2. start the dut test and wait till client gets IP address
dut1.start_app()
data = dut1.expect(re.compile(r" sta ip: ([^,]+),"))
data = dut1.expect(re.compile(r" sta ip: ([^,]+),"), timeout=30)
# 3. send host's IP to the client i.e. the `dut1`
dut1.write(host_ip)
# 4. client `dut1` should receive a message

Wyświetl plik

@ -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))

Wyświetl plik

@ -38,7 +38,7 @@ def test_examples_protocol_asio_tcp_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))

Wyświetl plik

@ -38,7 +38,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: ([^,]+),"))
data = dut1.expect(re.compile(r" sta ip: ([^,]+),"), timeout=30)
# 3. create tcp client and connect to server
cli = socket(AF_INET, SOCK_DGRAM)
cli.connect((data[0], 80))