Skip to content

Commit 538fac9

Browse files
fix: update tests to use ConstantFlightServerDelayed for timeout (#176)
1 parent c35f372 commit 538fac9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
1. [#167](https://github.com/InfluxCommunity/influxdb3-python/pull/167):
99
- Remove incorrect symbol `>>` for config.yml.
1010
- Added spacing for `<<` and `>>` just for consistency.
11+
1. [176](https://github.com/InfluxCommunity/influxdb3-python/pull/176): Use `ConstantFlightServerDelayed` for timeout tests.
1112

1213
## 0.16.0 [2025-09-15]
1314

tests/test_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ async def fibo(iters):
436436
@asyncio_run
437437
async def test_query_async_timeout(self):
438438
with pytest.raises(FlightTimedOutError):
439-
with ConstantFlightServer() as server:
439+
with ConstantFlightServerDelayed() as server:
440440
connection_string = f"grpc://localhost:{server.port}"
441441
token = "my_token"
442442
database = "my_database"
@@ -452,7 +452,7 @@ async def test_query_async_timeout(self):
452452

453453
def test_query_timeout_per_call_override(self):
454454
with pytest.raises(FlightTimedOutError):
455-
with ConstantFlightServer() as server:
455+
with ConstantFlightServerDelayed() as server:
456456
connection_string = f"grpc://localhost:{server.port}"
457457
token = "my_token"
458458
database = "my_database"

0 commit comments

Comments
 (0)