(ray_start_regular)
| 34 | reason="Requires Linux or Mac.", |
| 35 | ) |
| 36 | def test_put_local_get(ray_start_regular): |
| 37 | driver_actor = create_driver_actor() |
| 38 | chan = ray_channel.Channel( |
| 39 | None, |
| 40 | [ |
| 41 | (driver_actor, get_actor_node_id(driver_actor)), |
| 42 | ], |
| 43 | 1000, |
| 44 | ) |
| 45 | |
| 46 | num_writes = 1000 |
| 47 | for i in range(num_writes): |
| 48 | val = i.to_bytes(8, "little") |
| 49 | chan.write(val) |
| 50 | assert chan.read() == val |
| 51 | |
| 52 | |
| 53 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected
searching dependent graphs…