tests/integ/backupcompatibility: Storage.verify() is a coro
This commit is contained in:
		
							parent
							
								
									bc30c6f3e8
								
							
						
					
					
						commit
						49e7ce025f
					
				| @ -19,6 +19,7 @@ | |||||||
| 
 | 
 | ||||||
| from multiprocessing import Queue | from multiprocessing import Queue | ||||||
| 
 | 
 | ||||||
|  | import asyncio | ||||||
| import os | import os | ||||||
| import shutil | import shutil | ||||||
| import subprocess | import subprocess | ||||||
| @ -382,7 +383,7 @@ class TC_00_BackupCompatibility( | |||||||
|     def assertRestored(self, name, **kwargs): |     def assertRestored(self, name, **kwargs): | ||||||
|         with self.assertNotRaises((KeyError, qubes.exc.QubesException)): |         with self.assertNotRaises((KeyError, qubes.exc.QubesException)): | ||||||
|             vm = self.app.domains[name] |             vm = self.app.domains[name] | ||||||
|             vm.storage.verify() |             asyncio.get_event_loop().run_until_complete(vm.storage.verify()) | ||||||
|             for prop, value in kwargs.items(): |             for prop, value in kwargs.items(): | ||||||
|                 if prop == 'klass': |                 if prop == 'klass': | ||||||
|                     self.assertIsInstance(vm, value) |                     self.assertIsInstance(vm, value) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rusty Bird
						Rusty Bird