def test_valid_reference_memory_entry(): memory_entry = build_local_reference_entry() assert memory_entry.reference_type == ReferenceType.LOCAL_REFERENCE assert memory_entry.object_ref == ray.ObjectRef( decode_object_ref_if_needed(OBJECT_ID)) assert memory_entry.is_valid() is True
timeout=30000, retry_interval_ms=1000) wait_for_condition(test_actor_handle_reference, timeout=30000, retry_interval_ms=1000) """Memory Table Unit Test""" NODE_ADDRESS = "127.0.0.1" IS_DRIVER = True PID = 1 OBJECT_ID = "7wpsIhgZiBz/////AQAAyAEAAAA=" ACTOR_ID = "fffffffffffffffff66d17ba010000c801000000" DECODED_ID = decode_object_ref_if_needed(OBJECT_ID) OBJECT_SIZE = 100 def build_memory_entry(*, local_ref_count, pinned_in_memory, submitted_task_reference_count, contained_in_owned, object_size, pid, object_id=OBJECT_ID, node_address=NODE_ADDRESS): object_ref = { "objectId": object_id, "callSite": "(task call) /Users:458",