Skip to content

Commit 633425c

Browse files
committed
feat: add heartbeat to avoid unexpected timeout.
1 parent c943ce1 commit 633425c

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

bindings/nodejs/tests/binding.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,10 @@ Then("Query should not timeout", { timeout: 30000 }, async function () {
476476
});
477477

478478
Then("Drop result set should close it", async function () {
479-
return;
479+
if (DRIVER_VERSION < [0, 30, 3]) {
480+
console.log("SKIP");
481+
return;
482+
}
480483
const dbName = "drop_result_set_js";
481484
const n = (1n << 50n) + 1n;
482485

bindings/python/tests/asyncio/steps/binding.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ async def _(context):
367367

368368
@then("Drop result set should close it")
369369
async def _(context):
370+
if DRIVER_VERSION <= (0, 30, 3):
371+
print("SKIP")
372+
return
370373
db_name = "drop_result_set_conn"
371374
n = (1 << 50) + 1
372375
conn = await context.client.get_conn()

bindings/python/tests/blocking/steps/binding.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,13 @@ def _(context):
226226
@then("Temp table is cleaned up when conn is dropped")
227227
def _(context):
228228
test_temp_table(context, 1)
229-
test_temp_table(context, 0)
229+
if DRIVER_VERSION > (0, 30, 3):
230+
test_temp_table(context, 0)
230231

231232

232233
def test_temp_table(context, by_close):
233234
conn = context.client.get_conn()
234-
db_name = "temp_table_blocking"
235+
db_name = f"temp_table_blocking_{by_close}"
235236
conn.exec(f"create or replace database {db_name}")
236237
conn.exec(f"use {db_name}")
237238
for i in range(10):
@@ -358,6 +359,9 @@ def _(context):
358359

359360
@then("Drop result set should close it")
360361
def _(context):
362+
if DRIVER_VERSION <= (0, 30, 3):
363+
print("SKIP")
364+
return
361365
db_name = "drop_result_set_conn"
362366
dsn = "databend://root:@localhost:8000/?sslmode=disable"
363367

bindings/python/tests/cursor/steps/binding.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ def _(context):
312312

313313
@then("Drop result set should close it")
314314
def _(context):
315+
if DRIVER_VERSION <= (0, 30, 3):
316+
print("SKIP")
317+
return
315318
db_name = "drop_result_set_cursor"
316319
n = (1 << 50) + 1
317320
sql = f"select * from numbers({n})"

0 commit comments

Comments
 (0)