From 7f89a56275b019fa471817b96a696daee22b28f2 Mon Sep 17 00:00:00 2001 From: "Thomas J. Fan" Date: Mon, 20 Nov 2023 20:34:11 -0500 Subject: [PATCH] MAINT Adds more timeout for flakey test (#1981) * MAINT Adds more timeout for flakey test Signed-off-by: Thomas J. Fan * Less long running for stable CI Signed-off-by: Thomas J. Fan --------- Signed-off-by: Thomas J. Fan Signed-off-by: Rafael Raposo --- tests/flytekit/unit/extras/tasks/test_shell.py | 2 +- tests/flytekit/unit/extras/tasks/testdata/long-running.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/flytekit/unit/extras/tasks/test_shell.py b/tests/flytekit/unit/extras/tasks/test_shell.py index fca19ff0f9..35a55789a2 100644 --- a/tests/flytekit/unit/extras/tasks/test_shell.py +++ b/tests/flytekit/unit/extras/tasks/test_shell.py @@ -314,7 +314,7 @@ def test_raw_shell_task_instantiation(capfd): assert "second_arg" in cap.out -@pytest.mark.timeout(10) +@pytest.mark.timeout(20) def test_long_run_script(): script = os.path.join(testdata, "long-running.sh") ShellTask( diff --git a/tests/flytekit/unit/extras/tasks/testdata/long-running.sh b/tests/flytekit/unit/extras/tasks/testdata/long-running.sh index 4841b37c1c..1e4a34eaab 100755 --- a/tests/flytekit/unit/extras/tasks/testdata/long-running.sh +++ b/tests/flytekit/unit/extras/tasks/testdata/long-running.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -for _ in $(seq 1 200000); do +for _ in $(seq 1 100000); do echo "This is an error message" >&2 done