]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests/integration: wait more when down/up interface
authorVincent Bernat <vincent@bernat.im>
Wed, 16 Mar 2016 21:01:22 +0000 (22:01 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 16 Mar 2016 21:01:22 +0000 (22:01 +0100)
With IPv6, DAD may interfer and trigger more changes and lldpd will wait
those changes to settle.

tests/integration/test_interfaces.py

index d2252f65af8964303be45049e02f88871c545676..378bdc335b005ab29b2119334ff3a625d4551b4b 100644 (file)
@@ -184,7 +184,7 @@ def test_down_then_up(lldpd1, lldpd, lldpcli, namespaces, links):
         assert out == {}
     with namespaces(2):
         links.up('eth1')
-        time.sleep(2)
+        time.sleep(6)
     with namespaces(1):
         out = lldpcli("-f", "keyvalue", "show", "neighbors", "details")
         assert out['lldp.eth0.port.descr'] == 'eth1'
@@ -197,7 +197,7 @@ def test_down_then_up_with_vlan(lldpd1, lldpd, lldpcli, namespaces, links):
         links.down('eth1')
         lldpd()
         links.up('eth1')
-        time.sleep(2)
+        time.sleep(6)
     with namespaces(1):
         out = lldpcli("-f", "keyvalue", "show", "neighbors", "details")
         assert out['lldp.eth0.port.descr'] == 'eth1'