From: Vincent Bernat Date: Wed, 16 Mar 2016 21:01:22 +0000 (+0100) Subject: tests/integration: wait more when down/up interface X-Git-Tag: 0.9.2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe7e202d287fb764e73b435c45e4cf2f18ff874f;p=thirdparty%2Flldpd.git tests/integration: wait more when down/up interface With IPv6, DAD may interfer and trigger more changes and lldpd will wait those changes to settle. --- diff --git a/tests/integration/test_interfaces.py b/tests/integration/test_interfaces.py index d2252f65..378bdc33 100644 --- a/tests/integration/test_interfaces.py +++ b/tests/integration/test_interfaces.py @@ -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'