Skip to content

Commit 2e52ffe

Browse files
authored
Merge pull request #8 from JuliaParallel/tests-racecondition
Fix a race condition in the tests
2 parents e990442 + 4c00a27 commit 2e52ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/distributed_exec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ end
277277
fstore = RemoteChannel(wid2)
278278

279279
put!(fstore, rr)
280-
@test remotecall_fetch(k -> haskey(DistributedNext.PGRP.refs, k), wid1, rrid) == true
280+
@test timedwait(() -> remotecall_fetch(k -> haskey(DistributedNext.PGRP.refs, k), wid1, rrid), 10) == :ok
281281
finalize(rr) # finalize locally
282282
yield() # flush gc msgs
283283
@test remotecall_fetch(k -> haskey(DistributedNext.PGRP.refs, k), wid1, rrid) == true

0 commit comments

Comments
 (0)