Skip to content

Commit

Permalink
Update socket_api_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Kauppila authored Feb 13, 2018
1 parent 59545f9 commit 565da92
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/nanostack/unittest/libNET/socket_api/socket_api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,6 @@ TEST(SocketAPI, socket_getsockopt)

status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
BYTES_EQUAL(0, status);
int16_t *table = (int16_t*)option;
BYTES_EQUAL(64, table[0]);
BYTES_EQUAL(2, option_len);
option_len = 4;

Expand All @@ -897,8 +895,6 @@ TEST(SocketAPI, socket_getsockopt)
test_data->socket_ptr->inet_pcb->session = &tcp_session;
status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
BYTES_EQUAL(0, status);
uint8_t *table2 = (uint8_t*)option;
BYTES_EQUAL(entry.cur_hop_limit, table2[0]);
BYTES_EQUAL(2, option_len);
option_len = 4;

Expand Down

0 comments on commit 565da92

Please sign in to comment.