Skip to content

Commit

Permalink
Force full collection in SharedArrays tests (#34349)
Browse files Browse the repository at this point in the history
Fixes the same CI failure as #34336,
but hopefully should be immediately mergeable without objection about what
the interface is.
  • Loading branch information
Keno authored and KristofferC committed Apr 11, 2020
1 parent 005d994 commit dc1287d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/SharedArrays/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ finalize(S)

# call gc 3 times to avoid unlink: operation not permitted (EPERM) on Windows
S = nothing
@everywhere GC.gc()
@everywhere GC.gc()
@everywhere GC.gc()
@everywhere GC.gc(true)
@everywhere GC.gc(true)
@everywhere GC.gc(true)
rm(fn); rm(fn2); rm(fn3)

### Utility functions
Expand Down Expand Up @@ -288,7 +288,7 @@ let
id = a1.id
aorig = nothing
a1 = remotecall_fetch(fill!, id_other, a1, 1.0)
GC.gc(); GC.gc()
GC.gc(true); GC.gc(true)
a1 = remotecall_fetch(fill!, id_other, a1, 1.0)
@test haskey(SharedArrays.sa_refs, id)
finalize(a1)
Expand Down

0 comments on commit dc1287d

Please sign in to comment.