From bb659cf438dd22fa06a31d23c4f30c30f2a3376c Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Thu, 16 May 2019 07:43:49 -0500 Subject: [PATCH] Aggregate functional test tweak This seems to still be racy, lengthen the timeout to wait for agregate creation. Change-Id: I3601c5baee03745ae21714b9dff0e278ad016877 Signed-off-by: Dean Troyer --- .../tests/functional/compute/v2/test_aggregate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openstackclient/tests/functional/compute/v2/test_aggregate.py b/openstackclient/tests/functional/compute/v2/test_aggregate.py index 7102675716..590d28cb03 100644 --- a/openstackclient/tests/functional/compute/v2/test_aggregate.py +++ b/openstackclient/tests/functional/compute/v2/test_aggregate.py @@ -54,9 +54,10 @@ class AggregateTests(base.TestCase): # Loop a few times since this is timing-sensitive # Just hard-code it for now, since there is no pause and it is - # racy we shouldn't have to wait too long, a minute seems reasonable + # racy we shouldn't have to wait too long, a minute or two + # seems reasonable wait_time = 0 - while wait_time < 60: + while wait_time <= 120: cmd_output = json.loads(self.openstack( 'aggregate show -f json ' + name2