Skip to content

Commit 34a54a8

Browse files
Increase timeout in DNS_TIMEOUTS test for ESP8266
The test floods the device with UDP requests (it skips the 100 ms delay to simulate instant timeout). ESP8266 starts responding with "busy p..." message. It needs more time to process the data and recover for subsequent tests.
1 parent c385e14 commit 34a54a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

TESTS/netsocket/dns/asynchronous_dns_timeouts.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ void ASYNCHRONOUS_DNS_TIMEOUTS()
6666

6767
// Give event queue time to finalise before destructors
6868
ThisThread::sleep_for(2000);
69+
#ifdef MBED_CONF_ESP8266_TX
70+
// This test does a lot of requests on the ESP's sockets.
71+
// If subsequents tests start too early they run into "busy p...".
72+
ThisThread::sleep_for(10000);
73+
#endif
6974

7075
nsapi_dns_call_in_set(0);
7176
}

0 commit comments

Comments
 (0)