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 commit 1e81827e6f)
This commit is contained in:
Thomas Haller 2021-02-21 20:02:29 +01:00
parent b4ba6e7af5
commit 04aa208e9a
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);