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:
Thomas Haller 2016-08-16 16:44:06 +02:00
parent 6ed939e841
commit 85834a6675

View file

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