MCPcopy
hub / github.com/ray-project/ray / test_write_timeout

Function test_write_timeout

python/ray/tests/test_channel.py:75–89  ·  view source on GitHub ↗
(ray_start_regular)

Source from the content-addressed store, hash-verified

73 reason="Requires Linux or Mac.",
74)
75def 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(

Callers

nothing calls this directly

Calls 4

writeMethod · 0.95
get_actor_node_idFunction · 0.90
to_bytesMethod · 0.80
create_driver_actorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…