[test] test_trunk-limit the "ip address" command execution

Limit of 30 times the command "ip address" will be executed
for 300 seconds.

Change-Id: Ib421c9a5303157f7939a079ab8dcf238f3f9d5f0
This commit is contained in:
Fiorella Yanac 2022-12-19 13:15:48 +01:00
parent 3402df05fe
commit a281dfa416
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class RebootTrunkTest(testtools.TestCase):
"""Check Nova server VLAN port IP addresses"""
self.stack.ensure_server_status('ACTIVE')
expected = set(self.stack.list_vlan_fixed_ips())
for attempt in tobiko.retry():
for attempt in tobiko.retry(timeout=300, interval=10):
actual = set(ip.list_ip_addresses(device=self.stack.vlan_device,
ssh_client=self.stack.ssh_client,
scope='global'))