aports/testing/py3-duckdb/test_query_progress-increase-timeout.patch

28 lines
1.2 KiB
Diff

diff --git a/tests/fast/api/test_query_progress.py b/tests/fast/api/test_query_progress.py
index c57a88c..3d6c722 100644
--- a/tests/fast/api/test_query_progress.py
+++ b/tests/fast/api/test_query_progress.py
@@ -28,11 +28,11 @@ class TestQueryProgress:
thread.start()
# monitor the query running in the thread, wait for progress > 0
- # the 'for/else' is just so the test times out after 5 seconds if the
+ # the 'for/else' is just so the test times out after 15 seconds if the
# query never progresses. This will also fail if the query is too
# quick as it will be back at -1 as soon as the query is finished.
- for _ in range(500):
+ for _ in range(1500):
assert thread.is_alive(), "query finished too quick"
if (qp1 := conn.query_progress()) > 0:
break
@@ -41,7 +41,7 @@ class TestQueryProgress:
pytest.fail("query start timeout")
# keep monitoring and wait for the progress to increase
- for _ in range(500):
+ for _ in range(1500):
assert thread.is_alive(), "query finished too quick"
if (qp2 := conn.query_progress()) > qp1:
break