platform/tests: relax assertion in software_add

Avoid failure

    NMPlatformSignalAssert: test-link.c:146, software_add(): failure to accept signal one time: link-changed-changed ifindex 15 (2 times received)
This commit is contained in:
Thomas Haller 2016-10-19 15:23:49 +02:00
parent 956f0be2f9
commit 068dd41df9

View file

@ -143,7 +143,7 @@ software_add (NMLinkType link_type, const char *name)
/* when NM is running in the background, it will mess with addrgenmode which might cause additional signals. */
accept_signals (parent_changed, 0, 1);
} else
accept_signal (parent_changed);
accept_signals (parent_changed, 1, 2);
free_signal (parent_changed);
return nm_platform_link_vlan_add (NM_PLATFORM_GET, name, parent_ifindex, VLAN_ID, 0, NULL) == NM_PLATFORM_ERROR_SUCCESS;