]> git.ipfire.org Git - thirdparty/lldpd.git/commit
tests: avoid race condition when linking two namespaces
authorVincent Bernat <vincent@bernat.im>
Sun, 1 Jan 2017 12:26:08 +0000 (13:26 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 1 Jan 2017 12:26:08 +0000 (13:26 +0100)
commit36d0c286ecb38a8168cd1bf65bcc214dd19206da
tree5503b243ff42a0150e17670576dff5eb902049f0
parentb586ab14774b25f312b698d20b25771b879596f2
tests: avoid race condition when linking two namespaces

When creating a link between two namespaces, one lldpd will see the link
and send a LLDPDU before the other one. There is a slight delay for
lldpd to wait before sending the LLDPDU, but when the load is heavy, it
can be expected that the other side didn't configure the interface when
the LLDPDU is received. To solve this, just wait a bit before putting up
the second interface.
tests/integration/fixtures/network.py
tests/integration/test_interfaces.py
tests/integration/test_lldpcli.py