MCPcopy Create free account
hub / github.com/apache/arrow / test_timeout_passes

Function test_timeout_passes

python/pyarrow/tests/test_flight.py:1572–1577  ·  view source on GitHub ↗

Make sure timeouts do not fire on fast requests.

()

Source from the content-addressed store, hash-verified

1570
1571
1572def test_timeout_passes():
1573 """Make sure timeouts do not fire on fast requests."""
1574 with ConstantFlightServer() as server, \
1575 FlightClient(('localhost', server.port)) as client:
1576 options = flight.FlightCallOptions(timeout=5.0)
1577 client.do_get(flight.Ticket(b'ints'), options=options).read_all()
1578
1579
1580def test_read_options():

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
FlightCallOptionsMethod · 0.80
do_getMethod · 0.45

Tested by

no test coverage detected