Skip to content

Commit

Permalink
Fixed VM settings test
Browse files Browse the repository at this point in the history
Incorrect maxmem value caused error.

fixes QubesOS/qubes-issues#5857
  • Loading branch information
marmarta committed May 28, 2020
1 parent b058db4 commit 310d583
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qubesmanager/tests/test_vm_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ def test_20_advanced_loads(self):

def test_21_nondefaultmaxmem(self):
self.vm = self.qapp.add_new_vm("AppVM", "test-vm", "blue")
self.vm.maxmem = 5000
self.vm.maxmem = 3500

self.dialog = vm_settings.VMSettingsWindow(
self.vm, qapp=self.qtapp, qubesapp=self.qapp, init_page="advanced")

self.assertEqual(self.dialog.max_mem_size.value(), 5000)
self.assertEqual(self.dialog.max_mem_size.value(), 3500)

self.dialog.include_in_balancing.setChecked(False)
self._click_ok()
Expand All @@ -413,10 +413,10 @@ def test_21_nondefaultmaxmem(self):
self.assertFalse(self.dialog.include_in_balancing.isChecked())

self.dialog.include_in_balancing.setChecked(True)
self.assertEqual(self.dialog.max_mem_size.value(), 5000)
self.assertEqual(self.dialog.max_mem_size.value(), 3500)
self._click_ok()

self.assertEqual(self.vm.maxmem, 5000)
self.assertEqual(self.vm.maxmem, 3500)

def test_22_initmem(self):
self.vm = self.qapp.add_new_vm("AppVM", "test-vm", "blue")
Expand Down

0 comments on commit 310d583

Please sign in to comment.