1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests: adapt NIB tests for lifetime unit conversion

This commit is contained in:
Martine Lenders 2018-01-30 12:32:06 +01:00
parent 8e80a372cb
commit 1f8dc50602
2 changed files with 4 additions and 4 deletions

View File

@ -1114,8 +1114,8 @@ static void test_handle_pkt__rtr_adv__success(uint8_t rtr_adv_flags,
"Unexpected prefix configured");
TEST_ASSERT_EQUAL_INT(_LOC_GB_PFX_LEN, prefix.pfx_len);
TEST_ASSERT_EQUAL_INT(_mock_netif->pid, prefix.iface);
TEST_ASSERT(_PIO_PFX_LTIME < prefix.valid_until);
TEST_ASSERT(_PIO_PFX_LTIME < prefix.pref_until);
TEST_ASSERT((_PIO_PFX_LTIME / MS_PER_SEC) < prefix.valid_until);
TEST_ASSERT((_PIO_PFX_LTIME / MS_PER_SEC) < prefix.pref_until);
}
}
if (!pio || !(pio_flags & NDP_OPT_PI_FLAGS_L)) {

View File

@ -1072,8 +1072,8 @@ static void test_handle_pkt__rtr_adv__success(uint8_t rtr_adv_flags,
"Unexpected prefix configured");
TEST_ASSERT_EQUAL_INT(_LOC_GB_PFX_LEN, prefix.pfx_len);
TEST_ASSERT_EQUAL_INT(_mock_netif->pid, prefix.iface);
TEST_ASSERT(_PIO_PFX_LTIME < prefix.valid_until);
TEST_ASSERT(_PIO_PFX_LTIME < prefix.pref_until);
TEST_ASSERT((_PIO_PFX_LTIME / MS_PER_SEC) < prefix.valid_until);
TEST_ASSERT((_PIO_PFX_LTIME / MS_PER_SEC) < prefix.pref_until);
}
}
if (!pio) {