We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb54f50 + ed75443 commit 2e96145Copy full SHA for 2e96145
TESTS/netsocket/udp/udpsocket_echotest.cpp
@@ -29,6 +29,7 @@ namespace {
29
static const int SIGNAL_SIGIO_RX = 0x1;
30
static const int SIGNAL_SIGIO_TX = 0x2;
31
static const int SIGIO_TIMEOUT = 5000; //[ms]
32
+static const int SOCKET_TIMEOUT = (10 * 1000); //[ms]
33
static const int RETRIES = 2;
34
35
static const double EXPECTED_LOSS_RATIO = 0.0;
@@ -70,6 +71,7 @@ void UDPSOCKET_ECHOTEST()
70
71
UDPSocket sock;
72
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.open(NetworkInterface::get_default_instance()));
73
74
+ sock.set_timeout(SOCKET_TIMEOUT);
75
int recvd;
76
int sent;
77
int packets_sent = 0;
0 commit comments