Skip to content
Snippets Groups Projects
Unverified Commit 92166071 authored by Marian Buschsieweke's avatar Marian Buschsieweke
Browse files

tests/gnrc_ipv6_nib_6ln: Refactored code

Improved readability of if statements. This issue was pointed out by cppcheck.
parent 1b5f6155
No related branches found
No related tags found
No related merge requests found
......@@ -1075,11 +1075,9 @@ static void test_handle_pkt__rtr_adv__success(uint8_t rtr_adv_flags,
TEST_ASSERT((_PIO_PFX_LTIME / MS_PER_SEC) < prefix.pref_until);
}
}
if (!pio) {
if (!pio) {
TEST_ASSERT_EQUAL_INT(exp_addr_count,
_netif_addr_count(_mock_netif));
}
else {
TEST_ASSERT_EQUAL_INT(exp_addr_count,
_netif_addr_count(_mock_netif));
TEST_ASSERT_MESSAGE(!gnrc_ipv6_nib_pl_iter(0, &state, &prefix),
"There is an unexpected prefix list entry");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment