]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests/integration: sleep more after anything that create an interface
authorVincent Bernat <vincent@bernat.im>
Wed, 16 Mar 2016 21:06:56 +0000 (22:06 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 16 Mar 2016 21:06:56 +0000 (22:06 +0100)
See previous commit for rationale.

tests/integration/test_interfaces.py

index 378bdc335b005ab29b2119334ff3a625d4551b4b..47686d9c55b076dfdebd5c2f8dfda0736c968060 100644 (file)
@@ -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'