Skip to content

Commit 6b37480

Browse files
author
Ari Parkkila
committed
TESTS: Allow NSAPI_ERROR_NO_MEMORY on UDPSOCKET_ECHOTEST_BURST
1 parent d5abab8 commit 6b37480

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TESTS/netsocket/udp/udpsocket_echotest_burst.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ void UDPSOCKET_ECHOTEST_BURST()
100100
if (check_oversized_packets(sent, tx_buffers[x].len)) {
101101
TEST_IGNORE_MESSAGE("This device does not handle oversized packets");
102102
}
103-
TEST_ASSERT_EQUAL(tx_buffers[x].len, sent);
103+
if (sent != NSAPI_ERROR_NO_MEMORY) {
104+
TEST_ASSERT_EQUAL(tx_buffers[x].len, sent);
105+
}
104106
}
105107

106108
bt_total = 0;

0 commit comments

Comments
 (0)