Skip to content

Commit

Permalink
add ElasticManager test
Browse files Browse the repository at this point in the history
  • Loading branch information
marius311 committed May 13, 2020
1 parent 0d5cb1c commit a3c533a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# only package loading for now
using Test
using ClusterManagers

TIMEOUT = 10.

@testset "ElasticManager" begin

em = ElasticManager(addr=:auto, port=0)

# launch worker
run(`sh -c $(ClusterManagers.get_connect_cmd(em))`, wait=false)

# wait at most TIMEOUT seconds for it to connect
@test :ok == timedwait(TIMEOUT) do
length(em.active) == 1
end

end

0 comments on commit a3c533a

Please sign in to comment.