Test canceling a DoGet operation on the client side.
()
| 1947 | |
| 1948 | @pytest.mark.slow |
| 1949 | def test_cancel_do_get(): |
| 1950 | """Test canceling a DoGet operation on the client side.""" |
| 1951 | with ConstantFlightServer() as server, \ |
| 1952 | FlightClient(('localhost', server.port)) as client: |
| 1953 | reader = client.do_get(flight.Ticket(b'ints')) |
| 1954 | reader.cancel() |
| 1955 | with pytest.raises(flight.FlightCancelledError, |
| 1956 | match="(?i).*cancel.*"): |
| 1957 | reader.read_chunk() |
| 1958 | |
| 1959 | |
| 1960 | @pytest.mark.threading |
nothing calls this directly
no test coverage detected