Skip to content

Commit 37a7287

Browse files
committed
reduce number of generated rows in tests
1 parent 06f2582 commit 37a7287

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/build_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
test:
128128
name: Test ${{ matrix.os.download_name }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
129129
needs: build
130-
timeout-minutes: 30
130+
timeout-minutes: 40
131131
runs-on: ${{ matrix.os.image_name }}
132132
strategy:
133133
fail-fast: false
@@ -204,7 +204,7 @@ jobs:
204204
# To specify the test name (in single test mode) pass this env variable:
205205
# SINGLE_TEST_NAME: test/path/filename.py::test_name
206206
shell: bash
207-
timeout-minutes: 20
207+
timeout-minutes: 30
208208
- name: Combine coverages
209209
run: python -m tox run -e coverage --skip-missing-interpreters false
210210
shell: bash

test/integ/test_arrow_result.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,21 +1111,23 @@ def test_select_timestamp_with_scale(conn_cnx, scale, type):
11111111

11121112
def test_select_with_string(conn_cnx):
11131113
col_count = 2
1114-
row_count = 50000
1114+
# whummer: changed value from 50000 to 30000
1115+
row_count = 30000
11151116
random_seed = get_random_seed()
11161117
length = random.randint(1, 10)
11171118
sql_text = (
11181119
"select seq4() as c1, randstr({}, random({})) as c2 from ".format(
11191120
length, random_seed
11201121
)
1121-
+ "table(generator(rowcount=>50000)) order by c1"
1122+
+ f"table(generator(rowcount=>{row_count})) order by c1"
11221123
)
11231124
iterate_over_test_chunk("string", conn_cnx, sql_text, row_count, col_count)
11241125

11251126

11261127
def test_select_with_bool(conn_cnx):
11271128
col_count = 2
1128-
row_count = 50000
1129+
# whummer: changed value from 50000 to 30000
1130+
row_count = 30000
11291131
random_seed = get_random_seed()
11301132
sql_text = (
11311133
"select seq4() as c1, as_boolean(uniform(0, 1, random({}))) as c2 from ".format(
@@ -1138,7 +1140,8 @@ def test_select_with_bool(conn_cnx):
11381140

11391141
def test_select_with_float(conn_cnx):
11401142
col_count = 2
1141-
row_count = 50000
1143+
# whummer: changed value from 50000 to 30000
1144+
row_count = 30000
11421145
random_seed = get_random_seed()
11431146
pow_val = random.randint(0, 10)
11441147
val_len = random.randint(0, 16)
@@ -1171,7 +1174,8 @@ def test_select_with_empty_resultset(conn_cnx):
11711174

11721175
def test_select_with_large_resultset(conn_cnx):
11731176
col_count = 5
1174-
row_count = 1000000
1177+
# whummer: changed the rowcount from 1M to 30k below
1178+
row_count = 30000
11751179
random_seed = get_random_seed()
11761180

11771181
sql_text = (

test/integ/test_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ def test_describe(conn_cnx):
17951795

17961796
@pytest.mark.skipolddriver
17971797
def test_fetch_batches_with_sessions(conn_cnx):
1798-
rowcount = 250_000
1798+
rowcount = 150_000
17991799
with conn_cnx() as con:
18001800
with con.cursor() as cur:
18011801
cur.execute(

0 commit comments

Comments
 (0)