Skip to content

Commit e492025

Browse files
authored
Distributed test suite: wrap another non-thread-safe test in poll_while (#44280)
1 parent 8df488b commit e492025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Distributed/test/distributed_exec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ let wid1 = workers()[1],
298298
end
299299
remotecall_fetch(r -> (finalize(take!(r)); yield(); nothing), wid2, fstore) # finalize remotely
300300
sleep(0.5) # to ensure that wid2 messages have been executed on wid1
301-
@test remotecall_fetch(k -> haskey(Distributed.PGRP.refs, k), wid1, rrid) == false
301+
@test poll_while(() -> remotecall_fetch(k -> haskey(Distributed.PGRP.refs, k), wid1, rrid))
302302
end
303303

304304
# Tests for issue #23109 - should not hang.

0 commit comments

Comments
 (0)