Skip to content

Commit 60ef93c

Browse files
fix: adjust query timeout for test case
1 parent fbc3fa7 commit 60ef93c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_query.py

Lines changed: 3 additions & 3 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(delay=1) as server:
440440
connection_string = f"grpc://localhost:{server.port}"
441441
token = "my_token"
442442
database = "my_database"
@@ -445,14 +445,14 @@ async def test_query_async_timeout(self):
445445
token=token,
446446
flight_client_options={"generic_options": [('Foo', 'Bar')]},
447447
proxy=None,
448-
options=QueryApiOptionsBuilder().timeout(0.000000001).build(),
448+
options=QueryApiOptionsBuilder().timeout(0.0001).build(),
449449
)
450450
query = "SELECT * FROM data"
451451
await q_api.query_async(query, "sql", "", database)
452452

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

0 commit comments

Comments
 (0)