Skip to content

Commit

Permalink
MAINT Adds more timeout for flakey test (flyteorg#1981)
Browse files Browse the repository at this point in the history
* MAINT Adds more timeout for flakey test

Signed-off-by: Thomas J. Fan <[email protected]>

* Less long running for stable CI

Signed-off-by: Thomas J. Fan <[email protected]>

---------

Signed-off-by: Thomas J. Fan <[email protected]>
  • Loading branch information
thomasjpfan authored and ringohoffman committed Nov 24, 2023
1 parent 3a79700 commit acb33d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/flytekit/unit/extras/tasks/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/flytekit/unit/extras/tasks/testdata/long-running.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit acb33d9

Please sign in to comment.