mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 02:10:09 +01:00
platform/tests: relax unit test for setting IFLA_BR_FORWARD_DELAY/forward_delay
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/665 Fixes:e9278d8659('platform/tests: ignore failure for adding bridge with iproute2') (cherry picked from commit1e81827e6f)
This commit is contained in:
parent
b4ba6e7af5
commit
04aa208e9a
1 changed files with 4 additions and 1 deletions
|
|
@ -1542,7 +1542,10 @@ nmtstp_link_bridge_add(NMPlatform * platform,
|
|||
|
||||
ll = NMP_OBJECT_CAST_LNK_BRIDGE(NMP_OBJECT_UP_CAST(pllink)->_link.netlink.lnk);
|
||||
|
||||
g_assert_cmpint(lnk->forward_delay, ==, ll->forward_delay);
|
||||
/* account for roundtrip rounding error with clock_t_to_jiffies()/jiffies_to_clock_t(). */
|
||||
g_assert_cmpint(lnk->forward_delay, >=, ll->forward_delay - 1);
|
||||
g_assert_cmpint(lnk->forward_delay, <=, ll->forward_delay);
|
||||
|
||||
g_assert_cmpint(lnk->hello_time, ==, ll->hello_time);
|
||||
g_assert_cmpint(lnk->max_age, ==, ll->max_age);
|
||||
g_assert_cmpint(lnk->ageing_time, ==, ll->ageing_time);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue