Skip to content

Commit

Permalink
Bug fix: Update default amount of memory on tests
Browse files Browse the repository at this point in the history
Commit 2ca1067 increased the default amount of memory to 2048MB.
Update the test accordingly.

Signed-off-by: Aline Manera <[email protected]>
  • Loading branch information
alinefm committed Aug 27, 2019
1 parent f3fd456 commit 5bcc5d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_vmtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ def test_to_xml(self):
# max memory tag is not set
self.assertEqual(0, len(xpath_get_text(xml, expr)))
expr = '/domain/memory'
if os.uname()[4] == 's390x':
self.assertEqual(str(2048), xpath_get_text(xml, expr)[0])
else:
self.assertEqual(str(1024), xpath_get_text(xml, expr)[0])
self.assertEqual(str(2048), xpath_get_text(xml, expr)[0])

if hasattr(psutil, 'virtual_memory'):
host_memory = psutil.virtual_memory().total >> 10
Expand Down

0 comments on commit 5bcc5d8

Please sign in to comment.