Skip to content

Commit 76d6c36

Browse files
committed
Add some sleep statements to give the "flush gc msgs" task enough time to finish
1 parent 74010ab commit 76d6c36

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/Distributed/test/distributed_exec.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ function test_futures_dgc(id)
143143
@test fetch(f) == id
144144
@test f.v !== nothing
145145
yield(); # flush gc msgs
146+
sleep(6);
147+
yield();
146148
@test remotecall_fetch(k->(yield();haskey(Distributed.PGRP.refs, k)), id, fid) == false
147149

148150

@@ -153,6 +155,8 @@ function test_futures_dgc(id)
153155
@test f.v === nothing
154156
finalize(f)
155157
yield(); # flush gc msgs
158+
sleep(6);
159+
yield();
156160
@test remotecall_fetch(k->(yield();haskey(Distributed.PGRP.refs, k)), id, fid) == false
157161
end
158162

@@ -243,6 +247,8 @@ function test_remoteref_dgc(id)
243247
@test remotecall_fetch(k->(yield();haskey(Distributed.PGRP.refs, k)), id, rrid) == true
244248
finalize(rr)
245249
yield(); # flush gc msgs
250+
sleep(6);
251+
yield();
246252
@test remotecall_fetch(k->(yield();haskey(Distributed.PGRP.refs, k)), id, rrid) == false
247253
end
248254
test_remoteref_dgc(id_me)

0 commit comments

Comments
 (0)