test: Add check_interval parameter to wait_until
This also replaces two sleep calls in functional tests with wait_until
This commit is contained in:
5 files changed
+12
-12
No files matched your search
@@ -838,8 +838,8 @@ class TestNode():
|
||||
self.mocktime += seconds
|
||||
self.setmocktime(self.mocktime)
|
||||
|
||||
def wait_until(self, test_function, timeout=60):
|
||||
return wait_until_helper_internal(test_function, timeout=timeout, timeout_factor=self.timeout_factor)
|
||||
def wait_until(self, test_function, timeout=60, check_interval=0.05):
|
||||
return wait_until_helper_internal(test_function, timeout=timeout, timeout_factor=self.timeout_factor, check_interval=check_interval)
|
||||
|
||||
|
||||
class TestNodeCLIAttr:
|
||||
|
||||
Reference in new issue
Block a user