TESTS: Allow NSAPI_ERROR_NO_MEMORY on UDPSOCKET_ECHOTEST_BURST

pull/12083/head
Ari Parkkila 2019-12-20 04:44:29 -08:00
parent d5abab8843
commit 6b374804be
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@ void UDPSOCKET_ECHOTEST_BURST()
if (check_oversized_packets(sent, tx_buffers[x].len)) {
TEST_IGNORE_MESSAGE("This device does not handle oversized packets");
}
TEST_ASSERT_EQUAL(tx_buffers[x].len, sent);
if (sent != NSAPI_ERROR_NO_MEMORY) {
TEST_ASSERT_EQUAL(tx_buffers[x].len, sent);
}
}
bt_total = 0;