From fcff9a93bba89150ab708a5898ebadb3bcfef369 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Thu, 3 Apr 2025 15:34:12 +0100 Subject: [PATCH] Increase timeouts to make tests fail less --- tests/by_image/base-notebook/test_container_options.py | 2 +- tests/by_image/docker-stacks-foundation/test_user_options.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by_image/base-notebook/test_container_options.py b/tests/by_image/base-notebook/test_container_options.py index 0c73ec9a..fc70368a 100644 --- a/tests/by_image/base-notebook/test_container_options.py +++ b/tests/by_image/base-notebook/test_container_options.py @@ -40,7 +40,7 @@ def test_nb_user_change(container: TrackedContainer) -> None: # Give the chown time to complete. # Use sleep, not wait, because the container sleeps forever. - time.sleep(1) + time.sleep(5) LOGGER.info( f"Checking if a home folder of {nb_user} contains the hidden '.jupyter' folder with appropriate permissions ..." ) diff --git a/tests/by_image/docker-stacks-foundation/test_user_options.py b/tests/by_image/docker-stacks-foundation/test_user_options.py index f7a228fb..cf19332d 100644 --- a/tests/by_image/docker-stacks-foundation/test_user_options.py +++ b/tests/by_image/docker-stacks-foundation/test_user_options.py @@ -25,7 +25,7 @@ def test_uid_change(container: TrackedContainer) -> None: def test_gid_change(container: TrackedContainer) -> None: """Container should change the GID of the default user.""" logs = container.run_and_wait( - timeout=10, + timeout=20, user="root", environment=["NB_GID=110"], command=["id"],