From ab8db0c0afe8df1f303b2e850e149ac85284fbe2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 16 Mar 2016 22:06:56 +0100 Subject: [PATCH] tests/integration: sleep more after anything that create an interface See previous commit for rationale. --- tests/integration/test_interfaces.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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' -- 2.39.5