From 85834a66758aee6cd26ab79d169cad8a50eac3b7 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 16 Aug 2016 16:44:06 +0200 Subject: [PATCH] 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. --- src/platform/tests/test-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/tests/test-link.c b/src/platform/tests/test-link.c index e0870df561..9bf8aca831 100644 --- a/src/platform/tests/test-link.c +++ b/src/platform/tests/test-link.c @@ -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));