Skip to content

Commit 9320aac

Browse files
committed
fix(clusterlib): set default timeout to 120s in run_cli
Previously, the `run_cli` method inherited the timeout behavior from the base class, which did not set a default value. This change introduces a default timeout of 120 seconds if none is provided, altering the method's behavior to prevent indefinite waits and improve reliability.
1 parent 5479fc8 commit 9320aac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cardano_node_tests/utils/custom_clusterlib.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ def cli(
9696
Returns:
9797
clusterlib.CLIOut: A data container containing command stdout and stderr.
9898
"""
99+
# Set a default timeout. This is a change of behavior compared to the base class!
100+
if not timeout:
101+
timeout = 120
102+
99103
cli_args_strs_all = [str(arg) for arg in cli_args]
100104
if add_default_args:
101105
cli_args_strs_all.insert(0, "cardano-cli")

0 commit comments

Comments
 (0)