зеркало из https://github.com/microsoft/CCF.git
fix code update test timeout (#905)
This commit is contained in:
Родитель
16b0b36285
Коммит
8a9e535562
|
@ -9,6 +9,7 @@ libuv/
|
|||
raft_tests.md
|
||||
tests/raft_scenarios
|
||||
*.pyc
|
||||
__pycache__/
|
||||
sphinx/build/
|
||||
tests/Testing/
|
||||
doxygen/
|
||||
|
|
|
@ -317,9 +317,12 @@ class Consortium:
|
|||
):
|
||||
exists = False
|
||||
for _ in range(timeout):
|
||||
try:
|
||||
if self._check_node_exists(remote_node, node_id, node_status):
|
||||
exists = True
|
||||
break
|
||||
except TimeoutError:
|
||||
LOG.warning(f"Node {node_id} has not been recorded in the store yet")
|
||||
time.sleep(1)
|
||||
if not exists:
|
||||
raise TimeoutError(
|
||||
|
|
Загрузка…
Ссылка в новой задаче