fix online configure tests

This commit is contained in:
holger krekel
2020-05-20 19:44:06 +02:00
parent c3458ec59f
commit fedc946886
3 changed files with 25 additions and 10 deletions

View File

@@ -69,8 +69,11 @@ class ConfigureTracker:
""" wait until smtp is configured. """
self._imap_finished.wait()
def wait_progress(self):
return self._progress.get()
def wait_progress(self, data1=None):
while 1:
evdata = self._progress.get()
if data1 is None or evdata == data1:
break
def wait_finish(self):
""" wait until configure is completed.