tests/file: use self.loop
This commit is contained in:
parent
8f0ec59f95
commit
9122a14f94
@ -22,7 +22,6 @@
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
import asyncio
|
|
||||||
import unittest.mock
|
import unittest.mock
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -592,8 +591,7 @@ class TC_03_FilePool(qubes.tests.QubesTestCase):
|
|||||||
'pool': 'test-pool'
|
'pool': 'test-pool'
|
||||||
}
|
}
|
||||||
}, label='red')
|
}, label='red')
|
||||||
loop = asyncio.get_event_loop()
|
self.loop.run_until_complete(vm.create_on_disk())
|
||||||
loop.run_until_complete(vm.create_on_disk())
|
|
||||||
|
|
||||||
expected_vmdir = os.path.join(self.APPVMS_DIR, vm.name)
|
expected_vmdir = os.path.join(self.APPVMS_DIR, vm.name)
|
||||||
|
|
||||||
@ -622,8 +620,7 @@ class TC_03_FilePool(qubes.tests.QubesTestCase):
|
|||||||
'pool': 'test-pool'
|
'pool': 'test-pool'
|
||||||
}
|
}
|
||||||
}, label='red')
|
}, label='red')
|
||||||
loop = asyncio.get_event_loop()
|
self.loop.run_until_complete(vm.create_on_disk())
|
||||||
loop.run_until_complete(vm.create_on_disk())
|
|
||||||
|
|
||||||
expected_vmdir = os.path.join(self.TEMPLATES_DIR, vm.name)
|
expected_vmdir = os.path.join(self.TEMPLATES_DIR, vm.name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user