Merge pull request #1822 from shapeblue/4.9-travis-testfix

CLOUDSTACK-9584: Fix intermittent test failure in `test_volumes`The component/test_volume failures happen when disk offering is random selected to be a custom one. This fixes that.

* pr/1822:
  CLOUDSTACK-9584: Fix intermittent test failure in `test_volumes`

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2016-12-08 17:17:10 +05:30
commit 26a2c9ee9b
1 changed files with 1 additions and 1 deletions

View File

@ -1261,7 +1261,7 @@ class TestVolumes(cloudstackTestCase):
zoneid=self.zone.id,
account=domuser.name,
domainid=dom.id,
diskofferingid=diskoffering[0].id
diskofferingid=filter(lambda x: not x.iscustomized, diskoffering)[0].id
)
self.assertTrue(
vol is not None, "volume creation fails in domain %s as user %s" %