Fixing bad asserts

pull/4369/head
Brian Daniels 2017-06-01 18:25:40 -05:00 committed by Martin Kojtal
parent f616bf28f6
commit 94b4160347
2 changed files with 1 additions and 6 deletions

View File

@ -58,11 +58,6 @@ void test_udp_echo() {
int err = eth.connect();
TEST_ASSERT_EQUAL(0, err);
if (err) {
printf("MBED: failed to connect with an error of %d\r\n", err);
TEST_ASSERT_EQUAL(0, err);
}
printf("UDP client IP Address is %s\n", eth.get_ip_address());
greentea_send_kv("target_ip", eth.get_ip_address());

View File

@ -152,7 +152,7 @@ public:
result = success == ECHO_LOOPS;
err = sock.close();
TEST_ASSERT_EQUAL(0, err);
printf("[ID:%01u][%02u] Failed to close socket!\n", id, i);
if (err) {
result = false;
}