Increase all run_and_wait timeouts to at least 10 seconds

This commit is contained in:
Ayaz Salikhov
2025-04-03 21:22:38 +01:00
parent 1473c9bbda
commit f4b31dda77
6 changed files with 15 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ THIS_DIR = Path(__file__).parent.resolve()
def test_run_hooks_zero_args(container: TrackedContainer) -> None:
logs = container.run_and_wait(
timeout=5,
timeout=10,
no_failure=False,
command=["bash", "-c", "source /usr/local/bin/run-hooks.sh"],
)
@@ -20,7 +20,7 @@ def test_run_hooks_zero_args(container: TrackedContainer) -> None:
def test_run_hooks_two_args(container: TrackedContainer) -> None:
logs = container.run_and_wait(
timeout=5,
timeout=10,
no_failure=False,
command=[
"bash",
@@ -33,7 +33,7 @@ def test_run_hooks_two_args(container: TrackedContainer) -> None:
def test_run_hooks_missing_dir(container: TrackedContainer) -> None:
logs = container.run_and_wait(
timeout=5,
timeout=10,
no_failure=False,
command=[
"bash",
@@ -46,7 +46,7 @@ def test_run_hooks_missing_dir(container: TrackedContainer) -> None:
def test_run_hooks_dir_is_file(container: TrackedContainer) -> None:
logs = container.run_and_wait(
timeout=5,
timeout=10,
no_failure=False,
command=[
"bash",
@@ -59,7 +59,7 @@ def test_run_hooks_dir_is_file(container: TrackedContainer) -> None:
def test_run_hooks_empty_dir(container: TrackedContainer) -> None:
container.run_and_wait(
timeout=5,
timeout=10,
command=[
"bash",
"-c",
@@ -85,7 +85,7 @@ def run_source_in_dir(
"source /usr/local/bin/run-hooks.sh /home/jovyan/data-copy/" + command_suffix
)
return container.run_and_wait(
timeout=5,
timeout=10,
volumes={host_data_dir: {"bind": cont_data_dir, "mode": "ro"}},
no_failure=no_failure,
command=["bash", "-c", command],