From 9e457ae115c217a9ebb435fbae1f7569c2af9e34 Mon Sep 17 00:00:00 2001 From: norrislee Date: Fri, 20 Dec 2024 17:24:51 -0800 Subject: [PATCH] Lower the rowcount for the test --- tests/test_async.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_async.c b/tests/test_async.c index e77edeb282..fd20be1d84 100644 --- a/tests/test_async.c +++ b/tests/test_async.c @@ -239,7 +239,7 @@ void test_multiple_chunk() { /* query */ SF_STMT* sfstmt = snowflake_stmt(sf); - status = snowflake_prepare(sfstmt, "select randstr(100,random()) from table(generator(rowcount=>10000))", 0); + status = snowflake_prepare(sfstmt, "select randstr(100,random()) from table(generator(rowcount=>2000))", 0); assert_int_equal(status, SF_STATUS_SUCCESS); status = snowflake_async_execute(sfstmt); if (status != SF_STATUS_SUCCESS) { @@ -251,7 +251,7 @@ void test_multiple_chunk() { char* value = NULL; size_t value_len = 0; size_t max_value_size = 0; - assert_int_equal(snowflake_num_rows(sfstmt), 10000); + assert_int_equal(snowflake_num_rows(sfstmt), 2000); while ((status = snowflake_fetch(sfstmt)) == SF_STATUS_SUCCESS) { snowflake_column_as_str(sfstmt, 1, &value, &value_len, &max_value_size);