mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 06:20:10 +01:00
platform/tests: fix assertion for test-link for team device
Seems that team changed to now also raise two change signals.
Relax the assertion that broke tests on Fedora 22.
(cherry picked from commit 1c2883c940)
This commit is contained in:
parent
bcc94bb989
commit
dfb1c0301a
1 changed files with 1 additions and 4 deletions
|
|
@ -231,10 +231,7 @@ test_slave (int master, int type, SignalData *master_changed)
|
|||
g_assert (nm_platform_link_release (NM_PLATFORM_GET, master, ifindex));
|
||||
g_assert_cmpint (nm_platform_link_get_master (NM_PLATFORM_GET, ifindex), ==, 0);
|
||||
accept_signals (link_changed, 1, 3);
|
||||
if (link_type != NM_LINK_TYPE_TEAM)
|
||||
accept_signals (master_changed, 1, 2);
|
||||
else
|
||||
accept_signals (master_changed, 1, 1);
|
||||
accept_signals (master_changed, 1, 2);
|
||||
|
||||
ensure_no_signal (master_changed);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue