test_vm_life_cycle: Fix expunging logic as in mgmt server

Sets expunge interval to 600 if it's less than that

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-01-25 17:42:04 -08:00
parent 767f54cc9a
commit bc40ed85e5
1 changed files with 3 additions and 0 deletions

View File

@ -864,6 +864,9 @@ class TestVMLifeCycle(cloudstackTestCase):
name='expunge.interval'
)
expunge_cycle = int(config[0].value)*2
if expunge_cycle < 600:
expunge_cycle = 600*2
while expunge_cycle > 0:
list_vm_response = list_virtual_machines(
self.apiclient,