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

Function test_timeout_passes

python/pyarrow/tests/test_flight.py:1534–1539  ·  view source on GitHub ↗

Make sure timeouts do not fire on fast requests.

()

Source from the content-addressed store, hash-verified

1532
1533
1534def test_timeout_passes():
1535 """Make sure timeouts do not fire on fast requests."""
1536 with ConstantFlightServer() as server, \
1537 FlightClient(('localhost', server.port)) as client:
1538 options = flight.FlightCallOptions(timeout=5.0)
1539 client.do_get(flight.Ticket(b'ints'), options=options).read_all()
1540
1541
1542def 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