mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 18:20:37 +01:00
platform/tests: relax condition in platform test
With device-statistics counters in NMPlatformLink we may get an additional link-changed event. Relax the assertion in the test.
This commit is contained in:
parent
6ed939e841
commit
85834a6675
1 changed files with 1 additions and 1 deletions
|
|
@ -567,7 +567,7 @@ test_internal (void)
|
|||
g_assert (nm_platform_link_set_up (NM_PLATFORM_GET, ifindex, NULL));
|
||||
g_assert (nm_platform_link_is_up (NM_PLATFORM_GET, ifindex));
|
||||
g_assert (nm_platform_link_is_connected (NM_PLATFORM_GET, ifindex));
|
||||
accept_signal (link_changed);
|
||||
accept_signals (link_changed, 1, 2);
|
||||
g_assert (nm_platform_link_set_down (NM_PLATFORM_GET, ifindex));
|
||||
g_assert (!nm_platform_link_is_up (NM_PLATFORM_GET, ifindex));
|
||||
g_assert (!nm_platform_link_is_connected (NM_PLATFORM_GET, ifindex));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue