diff --git a/qubes/tests/storage_file.py b/qubes/tests/storage_file.py index bc3df8cb..b8096e9c 100644 --- a/qubes/tests/storage_file.py +++ b/qubes/tests/storage_file.py @@ -22,7 +22,6 @@ import os import shutil -import asyncio import unittest.mock import subprocess @@ -592,8 +591,7 @@ class TC_03_FilePool(qubes.tests.QubesTestCase): 'pool': 'test-pool' } }, label='red') - loop = asyncio.get_event_loop() - loop.run_until_complete(vm.create_on_disk()) + self.loop.run_until_complete(vm.create_on_disk()) expected_vmdir = os.path.join(self.APPVMS_DIR, vm.name) @@ -622,8 +620,7 @@ class TC_03_FilePool(qubes.tests.QubesTestCase): 'pool': 'test-pool' } }, label='red') - loop = asyncio.get_event_loop() - loop.run_until_complete(vm.create_on_disk()) + self.loop.run_until_complete(vm.create_on_disk()) expected_vmdir = os.path.join(self.TEMPLATES_DIR, vm.name)