Skip to content

Commit d32fa35

Browse files
brianphaleykarelyatin
authored andcommitted
Increase timeout in test_get_all_devices()
Although a wait_until_true() was added to this test, it still occasionally fails. From the debug it looks like the very next read of interfaces shows the one we were waiting for was now present: AssertionError: MacVTap address: 4e:0f:75:b8:c8:c2, read devices: {'4e:0f:75:b8:c8:c2'} Device ens3, MAC: fa:16:3e:14:44:a1 Device macvtap7b63baf3, MAC: 4e:0f:75:b8:c8:c2 ... Increase the timeout to 10 seconds to see if it helps the test become more stable. Change-Id: Ie66163c0e8459c1e90ae3af375469f9996f0801c Related-bug: #2012510 (cherry picked from commit 8cd949f)
1 parent 65be5a9 commit d32fa35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neutron/tests/functional/plugins/ml2/drivers/macvtap/agent/test_macvtap_neutron_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_get_all_devices(self):
4848
try:
4949
common_utils.wait_until_true(
5050
lambda: {macvtap.link.address} == self.mgr.get_all_devices(),
51-
timeout=5)
51+
timeout=10)
5252
except common_utils.WaitTimeout:
5353
msg = 'MacVTap address: %s, read devices: %s\n' % (
5454
macvtap.link.address, self.mgr.get_all_devices())

0 commit comments

Comments
 (0)