(ray_start_regular)
| 73 | reason="Requires Linux or Mac.", |
| 74 | ) |
| 75 | def test_write_timeout(ray_start_regular): |
| 76 | driver_actor = create_driver_actor() |
| 77 | chan = ray_channel.Channel( |
| 78 | None, |
| 79 | [ |
| 80 | (driver_actor, get_actor_node_id(driver_actor)), |
| 81 | ], |
| 82 | 1000, |
| 83 | ) |
| 84 | |
| 85 | val = 1 |
| 86 | bytes = val.to_bytes(8, "little") |
| 87 | chan.write(bytes, timeout=1) |
| 88 | with pytest.raises(RayChannelTimeoutError): |
| 89 | chan.write(bytes, timeout=1) |
| 90 | |
| 91 | |
| 92 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected
searching dependent graphs…