Skip to content

Commit

Permalink
Test return types from get_node_to_connect_for_driver
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Oct 25, 2023
1 parent 8f4b96e commit 105acef
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/global_state_accessor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
raylet, store, node_port = get_node_to_connect_for_driver(GLOBAL_STATE_ACCESSOR[],
NODE_IP_ADDRESS)

raylet_regex = r"^/tmp/ray/session_[0-9_-]+/sockets/raylet"
@test occursin(raylet_regex, String(raylet))

store_regex = r"^/tmp/ray/session_[0-9_-]+/sockets/plasma_store"
@test occursin(store_regex, String(store))

@test node_port isa Number
@test raylet isa StdString
@test occursin(r"^/tmp/ray/session_[0-9_-]+/sockets/raylet", raylet)
@test store isa StdString
@test occursin(r"^/tmp/ray/session_[0-9_-]+/sockets/plasma_store", store)
@test node_port isa Integer
@test 0 <= node_port <= 65535

ray_jll.Disconnect(GLOBAL_STATE_ACCESSOR[])
end

0 comments on commit 105acef

Please sign in to comment.