tests: fix a fix for too short delay in 201_shutdown_event_race test

It's _domain_stopped_lock, not startup_lock.
This commit is contained in:
Marek Marczykowski-Górecki 2019-10-13 05:58:19 +02:00
parent 45a6252c06
commit f0ae8c0454
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -233,8 +233,8 @@ class TC_00_Basic(qubes.tests.SystemTestCase):
# and give a chance for both domain-shutdown handlers to execute
self.loop.run_until_complete(asyncio.sleep(3))
# wait for running shutdown handler to complete
self.loop.run_until_complete(self.vm.startup_lock.acquire())
self.vm.startup_lock.release()
self.loop.run_until_complete(self.vm._domain_stopped_lock.acquire())
self.vm._domain_stopped_lock.release()
if self.test_failure_reason:
self.fail(self.test_failure_reason)