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)

(cherry picked from commit e492025)
  • Loading branch information
DilumAluthge authored and ararslan committed Mar 28, 2022
1 parent b9b0bcf commit 909db01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Distributed/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 909db01

Please sign in to comment.