Skip to content

Commit 7181300

Browse files
authored
Add test for 22865 (#22896)
1 parent e3ad45e commit 7181300

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/distributed_exec.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,6 +1772,13 @@ Base.cluster_cookie("foobar") # custom cookie
17721772
npids = addprocs_with_testenv(WorkerArgTester(`--worker=foobar`, false))
17731773
@test remotecall_fetch(myid, npids[1]) == npids[1]
17741774

1775+
# Issue # 22865
1776+
# Must be run on a new cluster, i.e., all workers must be in the same state.
1777+
rmprocs(workers())
1778+
p1,p2 = addprocs_with_testenv(2)
1779+
@everywhere f22865(p) = remotecall_fetch(x->x.*2, p, ones(2))
1780+
@test ones(2).*2 == remotecall_fetch(f22865, p1, p2)
1781+
17751782
# Run topology tests last after removing all workers, since a given
17761783
# cluster at any time only supports a single topology.
17771784
rmprocs(workers())

0 commit comments

Comments
 (0)