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.
This commit is contained in:
Thomas Haller
2015-08-01 11:17:41 +02:00
parent 3a7db0dd9e
commit 1c2883c940

View File

@@ -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);
ensure_no_signal (master_changed);