Fix bug in test found by manual log inspection (#46309)

This commit is contained in:
Allen Porter 2021-02-09 21:59:49 -08:00 committed by GitHub
parent 5fcb948e28
commit 00aebec90d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,8 @@ class WorkerSync:
# Block the worker thread until the test has a chance to verify
# the segments under test.
logging.debug("blocking worker")
self._event.wait()
if self._event:
self._event.wait()
# Forward to actual implementation
self._original(stream)