From e18d3f5b54bc4300b56e01b46f1786793304bad4 Mon Sep 17 00:00:00 2001 From: NguyenHoangSon96 Date: Fri, 21 Nov 2025 15:52:23 +0700 Subject: [PATCH 1/2] fix: update tests to use `ConstantFlightServerDelayed` for timeout scenarios --- tests/test_query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_query.py b/tests/test_query.py index b951bdf..ade4b2d 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -436,7 +436,7 @@ async def fibo(iters): @asyncio_run async def test_query_async_timeout(self): with pytest.raises(FlightTimedOutError): - with ConstantFlightServer() as server: + with ConstantFlightServerDelayed() as server: connection_string = f"grpc://localhost:{server.port}" token = "my_token" database = "my_database" @@ -452,7 +452,7 @@ async def test_query_async_timeout(self): def test_query_timeout_per_call_override(self): with pytest.raises(FlightTimedOutError): - with ConstantFlightServer() as server: + with ConstantFlightServerDelayed() as server: connection_string = f"grpc://localhost:{server.port}" token = "my_token" database = "my_database" From 7b7a67b6ce1d53540ba6d6561c4b7b51d25bec5d Mon Sep 17 00:00:00 2001 From: NguyenHoangSon96 Date: Fri, 21 Nov 2025 15:54:35 +0700 Subject: [PATCH 2/2] chore: update CHANGELOG with PR #176 for timeout test changes --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ad8a29..2bf525d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ 1. [#167](https://github.com/InfluxCommunity/influxdb3-python/pull/167): - Remove incorrect symbol `>>` for config.yml. - Added spacing for `<<` and `>>` just for consistency. +1. [176](https://github.com/InfluxCommunity/influxdb3-python/pull/176): Use `ConstantFlightServerDelayed` for timeout tests. ## 0.16.0 [2025-09-15]