From: Vincent Bernat Date: Wed, 16 Mar 2016 21:06:56 +0000 (+0100) Subject: tests/integration: sleep more after anything that create an interface X-Git-Tag: 0.9.2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab8db0c0afe8df1f303b2e850e149ac85284fbe2;p=thirdparty%2Flldpd.git tests/integration: sleep more after anything that create an interface See previous commit for rationale. --- diff --git a/tests/integration/test_interfaces.py b/tests/integration/test_interfaces.py index 378bdc33..47686d9c 100644 --- a/tests/integration/test_interfaces.py +++ b/tests/integration/test_interfaces.py @@ -29,7 +29,6 @@ def test_bridge_with_vlan(lldpd1, lldpd, lldpcli, namespaces, links, when): if when == 'before': lldpd() else: - # IPv6 DAD may kick in time.sleep(6) with namespaces(1): out = lldpcli("-f", "keyvalue", "show", "neighbors", "details") @@ -56,7 +55,6 @@ def test_bond(lldpd1, lldpd, lldpcli, namespaces, links, when): if when == 'before': lldpd() else: - # IPv6 DAD may kick in time.sleep(6) with namespaces(1): out = lldpcli("-f", "keyvalue", "show", "neighbors", "details") @@ -84,7 +82,6 @@ def test_bond_with_vlan(lldpd1, lldpd, lldpcli, namespaces, links, when): if when == 'before': lldpd() else: - # IPv6 DAD may kick in time.sleep(6) with namespaces(1): out = lldpcli("-f", "keyvalue", "show", "neighbors", "details") @@ -150,7 +147,7 @@ def test_unenslave_bond(lldpd1, lldpd, lldpcli, namespaces, links): lldpd() links.remove('bond42') links.up('eth1') - time.sleep(4) + time.sleep(6) with namespaces(1): out = lldpcli("-f", "keyvalue", "show", "neighbors", "details") assert out['lldp.eth0.port.descr'] == 'eth1' @@ -167,7 +164,7 @@ def test_unenslave_bond_with_vlan(lldpd1, lldpd, lldpcli, namespaces, links): lldpd() links.remove('bond42') links.up('eth1') - time.sleep(4) + time.sleep(6) with namespaces(1): out = lldpcli("-f", "keyvalue", "show", "neighbors", "details") assert out['lldp.eth0.port.descr'] == 'eth1' @@ -209,7 +206,7 @@ def test_new_interface(lldpd1, lldpd, lldpcli, namespaces, links): with namespaces(2): lldpd() links(namespaces(1), namespaces(2)) - time.sleep(2) + time.sleep(6) with namespaces(1): out = lldpcli("-f", "keyvalue", "show", "neighbors", "details") assert out['lldp.eth0.port.descr'] == 'eth1'