@@ -110,33 +110,33 @@ using Random
110110 addprocs_with_testenv (8 )
111111 def_count_conn ()
112112
113- @info " 10 random combinations"
114- # Test for 10 random combinations
115- wl = workers ()
116- combinations = []
117- while length (combinations) < 10
118- from = rand (wl)
119- to = rand (wl)
120- if from == to || ((from,to) in combinations) || ((to,from) in combinations)
121- continue
122- else
123- push! (combinations, (from,to))
124- end
125- end
126-
127- # Initially only master-worker connections ought to be setup
128- expected_num_conns = 8
129- let num_conns = sum (asyncmap (p-> remotecall_fetch (count_connected_workers,p), workers ()))
130- @test num_conns == expected_num_conns
131- end
132-
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
113+ # @info "10 random combinations"
114+ # # Test for 10 random combinations
115+ # wl = workers()
116+ # combinations = []
117+ # while length(combinations) < 10
118+ # from = rand(wl)
119+ # to = rand(wl)
120+ # if from == to || ((from,to) in combinations) || ((to,from) in combinations)
121+ # continue
122+ # else
123+ # push!(combinations, (from,to))
124+ # end
125+ # end
126+
127+ # # Initially only master-worker connections ought to be setup
128+ # expected_num_conns = 8
129+ # let num_conns = sum(asyncmap(p->remotecall_fetch(count_connected_workers,p), workers()))
130+ # @test num_conns == expected_num_conns
131+ # end
132+
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`
0 commit comments