Skip to content

Commit

Permalink
Add some sleep statements to give the "flush gc msgs" task enough t…
Browse files Browse the repository at this point in the history
…ime to finish
  • Loading branch information
DilumAluthge committed Oct 4, 2021
1 parent 74010ab commit 5a242cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stdlib/Distributed/test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ function test_futures_dgc(id)
@test fetch(f) == id
@test f.v !== nothing
yield(); # flush gc msgs
sleep(6);
yield();
@test remotecall_fetch(k->(yield();haskey(Distributed.PGRP.refs, k)), id, fid) == false


Expand All @@ -153,6 +155,8 @@ function test_futures_dgc(id)
@test f.v === nothing
finalize(f)
yield(); # flush gc msgs
sleep(6);
yield();
@test remotecall_fetch(k->(yield();haskey(Distributed.PGRP.refs, k)), id, fid) == false
end

Expand Down

0 comments on commit 5a242cc

Please sign in to comment.