From 310d583b2a11a6cb6a436419d8cf12c432a68b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Thu, 28 May 2020 19:31:25 +0200 Subject: [PATCH] Fixed VM settings test Incorrect maxmem value caused error. fixes QubesOS/qubes-issues#5857 --- qubesmanager/tests/test_vm_settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qubesmanager/tests/test_vm_settings.py b/qubesmanager/tests/test_vm_settings.py index a9ebf26..1c8bd71 100644 --- a/qubesmanager/tests/test_vm_settings.py +++ b/qubesmanager/tests/test_vm_settings.py @@ -393,12 +393,12 @@ class VMSettingsTest(unittest.TestCase): 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() @@ -413,10 +413,10 @@ class VMSettingsTest(unittest.TestCase): 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")