Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Nov 2, 2024
1 parent c629bf6 commit 68482e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/topology.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ using Random
end
end

@info "finished TopoTestManager"
remove_workers_and_test()

# test `lazy` connection setup
Expand All @@ -109,6 +110,7 @@ using Random
addprocs_with_testenv(8)
def_count_conn()

@info "10 random combinations"
# Test for 10 random combinations
wl = workers()
combinations = []
Expand Down Expand Up @@ -136,12 +138,14 @@ using Random
end
end

@info "finished master-worker"
# With lazy=false, all connections ought to be setup during `addprocs`
nprocs() > 1 && rmprocs(workers())
addprocs_with_testenv(8; lazy=false)
def_count_conn()
@test sum(asyncmap(p->remotecall_fetch(count_connected_workers,p), workers())) == 64

@info "finished lazy=false"
# Cannot add more workers with a different `lazy` value
@test_throws ArgumentError addprocs_with_testenv(1; lazy=true)
end

0 comments on commit 68482e6

Please sign in to comment.