Test canceling a DoGet operation on the client side.
()
| 1909 | |
| 1910 | @pytest.mark.slow |
| 1911 | def test_cancel_do_get(): |
| 1912 | """Test canceling a DoGet operation on the client side.""" |
| 1913 | with ConstantFlightServer() as server, \ |
| 1914 | FlightClient(('localhost', server.port)) as client: |
| 1915 | reader = client.do_get(flight.Ticket(b'ints')) |
| 1916 | reader.cancel() |
| 1917 | with pytest.raises(flight.FlightCancelledError, |
| 1918 | match="(?i).*cancel.*"): |
| 1919 | reader.read_chunk() |
| 1920 | |
| 1921 | |
| 1922 | @pytest.mark.threading |
nothing calls this directly
no test coverage detected