Skip to content

Commit

Permalink
Distributed test suite: wrap another non-thread-safe test in `poll_wh…
Browse files Browse the repository at this point in the history
…ile` (#44280)
  • Loading branch information
DilumAluthge authored Feb 22, 2022
1 parent 3ee0500 commit 6e78d83
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 @@ -298,7 +298,7 @@ let wid1 = workers()[1],
end
remotecall_fetch(r -> (finalize(take!(r)); yield(); nothing), wid2, fstore) # finalize remotely
sleep(0.5) # to ensure that wid2 messages have been executed on wid1
@test remotecall_fetch(k -> haskey(Distributed.PGRP.refs, k), wid1, rrid) == false
@test poll_while(() -> remotecall_fetch(k -> haskey(Distributed.PGRP.refs, k), wid1, rrid))
end

# Tests for issue #23109 - should not hang.
Expand Down

0 comments on commit 6e78d83

Please sign in to comment.