mirror of https://github.com/ARMmbed/mbed-os.git
Greentea UDPSOCKET_RECV_TIMEOUT increase time tolerance
parent
a12ab30f98
commit
fba66cf7f3
|
|
@ -62,7 +62,7 @@ void UDPSOCKET_RECV_TIMEOUT()
|
||||||
if (recvd == NSAPI_ERROR_WOULD_BLOCK) {
|
if (recvd == NSAPI_ERROR_WOULD_BLOCK) {
|
||||||
osSignalWait(SIGNAL_SIGIO, SIGIO_TIMEOUT);
|
osSignalWait(SIGNAL_SIGIO, SIGIO_TIMEOUT);
|
||||||
printf("MBED: recvfrom() took: %dms\n", timer.read_ms());
|
printf("MBED: recvfrom() took: %dms\n", timer.read_ms());
|
||||||
TEST_ASSERT_INT_WITHIN(50, 150, timer.read_ms());
|
TEST_ASSERT_INT_WITHIN(51, 150, timer.read_ms());
|
||||||
continue;
|
continue;
|
||||||
} else if (recvd < 0) {
|
} else if (recvd < 0) {
|
||||||
printf("[bt#%02d] network error %d\n", i, recvd);
|
printf("[bt#%02d] network error %d\n", i, recvd);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue