From 0b4c7d3b709ffbc563d0d13028e984d493572bf3 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Sat, 19 Feb 2022 23:38:28 -0500 Subject: [PATCH] Distributed test suite: wrap another non-thread-safe test in `poll_while` --- stdlib/Distributed/test/distributed_exec.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Distributed/test/distributed_exec.jl b/stdlib/Distributed/test/distributed_exec.jl index 69d9fb47eccc5..d2d46aebf0f1b 100644 --- a/stdlib/Distributed/test/distributed_exec.jl +++ b/stdlib/Distributed/test/distributed_exec.jl @@ -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.