forked from goodboy/tractor
1
0
Fork 0
tractor/tractor/_testing
Tyler Goodlet 0fcd424d57 Start a new `._testing.fault_simulation`
Since I needed the `break_ipc()` helper from the
`examples/advanced_faults/ipc_failure_during_stream.py` used in the
`test_advanced_faults` suite, might as well move it into a pkg-wide
importable module. Also changed the default break method to be
`socket_close` which just calls `Stream.socket.close()` underneath in
`trio`.

Also tweak that example to not keep sending after the stream has been
broken since with new `trio` that will raise `ClosedResourceError` and
in the wrapping test we generally speaking want to see a hang and then
cancel via simulated user sent SIGINT/ctl-c.
2024-04-03 10:19:50 -04:00
..
__init__.py Start a new `._testing.fault_simulation` 2024-04-03 10:19:50 -04:00
fault_simulation.py Start a new `._testing.fault_simulation` 2024-04-03 10:19:50 -04:00
pytest.py Add (back) a `tractor._testing` sub-pkg 2024-03-13 09:09:08 -04:00