Beispiel #1
0
 def wait_for(self, check, timeout, freq=0.5, kwargs=dict()):
     try:
         yield time.wait_for_ex(check, timeout, freq, kwargs=kwargs,
                                logger=self)
     except RuntimeError as e:
         raise unittest.FailTest(str(e))
Beispiel #2
0
 def wait_for(self, check, timeout, freq=0.5, kwargs=dict()):
     d = time.wait_for_ex(check, timeout, freq=freq, kwargs=kwargs,
                          logger=self)
     d.addErrback(lambda f: self.fail(f.value))
     return d
Beispiel #3
0
 def wait_for_idle(self, timeout=20, freq=0.01):
     return time.wait_for_ex(self.is_idle, timeout, freq, logger=self)