tests/integ/backupcompatibility: Storage.verify() is a coro

This commit is contained in:
Rusty Bird 2018-09-11 23:50:28 +00:00
parent bc30c6f3e8
commit 49e7ce025f
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -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)