Skip to content

Commit

Permalink
Merge pull request #8 from JuliaParallel/tests-racecondition
Browse files Browse the repository at this point in the history
Fix a race condition in the tests
  • Loading branch information
JamesWrigley authored Nov 19, 2024
2 parents e990442 + 4c00a27 commit 2e52ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ end
fstore = RemoteChannel(wid2)

put!(fstore, rr)
@test remotecall_fetch(k -> haskey(DistributedNext.PGRP.refs, k), wid1, rrid) == true
@test timedwait(() -> remotecall_fetch(k -> haskey(DistributedNext.PGRP.refs, k), wid1, rrid), 10) == :ok
finalize(rr) # finalize locally
yield() # flush gc msgs
@test remotecall_fetch(k -> haskey(DistributedNext.PGRP.refs, k), wid1, rrid) == true
Expand Down

0 comments on commit 2e52ffe

Please sign in to comment.