File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments