Skip to content

Commit 928082b

Browse files
author
Mirela Chirica
committed
Cellular: Fix greentea sendto test to clear socket event flags
1 parent 7e684cd commit 928082b

File tree

1 file changed

+1
-1
lines changed
  • features/cellular/TESTS/socket/udp

1 file changed

+1
-1
lines changed

features/cellular/TESTS/socket/udp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class EchoSocket : public UDPSocket {
8282
_data[i] = (uint8_t)rand();
8383
}
8484
// clear pending events
85-
while ((EchoSocket::eventFlags.wait_any(_async_flag, SOCKET_TIMEOUT) & (osFlagsError | _async_flag)) == _async_flag);
85+
TEST_ASSERT(!(EchoSocket::eventFlags.clear(_async_flag) & osFlagsError));
8686
if (hostname) {
8787
TEST_ASSERT(sendto(hostname, ECHO_SERVER_UDP_PORT, _data, _size) == _size);
8888
} else {

0 commit comments

Comments
 (0)