Skip to content

Commit e2b7431

Browse files
committed
fixup! debug
1 parent 5a8add7 commit e2b7431

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

test/topology.jl

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
using Random
44

55
@testset "Topology" begin
6-
pids = addprocs_with_testenv(4; topology="master_worker")
6+
# pids = addprocs_with_testenv(4; topology="master_worker")
77

8-
let p1 = pids[1], p2 = pids[2]
9-
@test_throws RemoteException remotecall_fetch(()->remotecall_fetch(myid, p2), p1)
10-
end
8+
# let p1 = pids[1], p2 = pids[2]
9+
# @test_throws RemoteException remotecall_fetch(()->remotecall_fetch(myid, p2), p1)
10+
# end
1111

1212
function test_worker_counts()
1313
# check if the nprocs/nworkers/workers are the same on the remaining workers
@@ -32,7 +32,7 @@ using Random
3232
end
3333
end
3434

35-
remove_workers_and_test()
35+
# remove_workers_and_test()
3636

3737
# connect even pids to other even pids, odd to odd.
3838
mutable struct TopoTestManager <: ClusterManager
@@ -95,7 +95,7 @@ using Random
9595
# end
9696

9797
@info "finished TopoTestManager"
98-
remove_workers_and_test()
98+
# remove_workers_and_test()
9999

100100
# test `lazy` connection setup
101101
function def_count_conn()
@@ -130,18 +130,20 @@ using Random
130130
@test num_conns == expected_num_conns
131131
end
132132

133-
for (i, (from,to)) in enumerate(combinations)
134-
remotecall_wait(topid->remotecall_fetch(myid, topid), from, to)
135-
expected_num_conns += 2 # one connection endpoint on both from and to
136-
let num_conns = sum(asyncmap(p->remotecall_fetch(count_connected_workers,p), workers()))
137-
@test num_conns == expected_num_conns
138-
end
139-
end
133+
# for (i, (from,to)) in enumerate(combinations)
134+
# remotecall_wait(topid->remotecall_fetch(myid, topid), from, to)
135+
# expected_num_conns += 2 # one connection endpoint on both from and to
136+
# let num_conns = sum(asyncmap(p->remotecall_fetch(count_connected_workers,p), workers()))
137+
# @test num_conns == expected_num_conns
138+
# end
139+
# end
140140

141141
@info "finished master-worker"
142142
# With lazy=false, all connections ought to be setup during `addprocs`
143143
@show workers()
144144
nprocs() > 1 && rmprocs(workers())
145+
return
146+
145147
addprocs_with_testenv(8; lazy=false)
146148
def_count_conn()
147149
@test sum(asyncmap(p->remotecall_fetch(count_connected_workers,p), workers())) == 64

0 commit comments

Comments
 (0)