Ensure that actions are executed even when we don't consume iterator. See https://issues.apache.org/jira/browse/ARROW-14255
()
| 2562 | |
| 2563 | |
| 2564 | def test_none_action_side_effect(): |
| 2565 | """Ensure that actions are executed even when we don't consume iterator. |
| 2566 | |
| 2567 | See https://issues.apache.org/jira/browse/ARROW-14255 |
| 2568 | """ |
| 2569 | |
| 2570 | with ActionNoneFlightServer() as server, \ |
| 2571 | FlightClient(('localhost', server.port)) as client: |
| 2572 | client.do_action(flight.Action("append", b"")) |
| 2573 | r = client.do_action(flight.Action("get_value", b"")) |
| 2574 | assert json.loads(next(r).body.to_pybytes()) == [True] |
| 2575 | |
| 2576 | |
| 2577 | @pytest.mark.slow # Takes a while for gRPC to "realize" writes fail |
nothing calls this directly
no test coverage detected