Skip to content

Commit f56f3f9

Browse files
committed
remove unsound threading test
1 parent 68ebb1e commit f56f3f9

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/test_geos_types.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -369,24 +369,6 @@ end
369369
return nothing
370370
end
371371
@test f91(91) === nothing
372-
function f91_mixed_contexts(n)
373-
nthread = Threads.nthreads()
374-
contexts = [LibGEOS.GEOSContext() for i=1:nthread]
375-
p = [[[-1.,-1],[+1,-1],[+1,+1],[-1,+1],[-1,-1]]]
376-
Threads.@threads :static for i=1:n
377-
ctx1 = contexts[rand(1:nthread)]
378-
ctx2 = contexts[rand(1:nthread)]
379-
ctx3 = contexts[rand(1:nthread)]
380-
g1 = LibGEOS.Polygon(p, ctx1)
381-
g2 = LibGEOS.Polygon(p, ctx2)
382-
for j=1:n
383-
@test LibGEOS.intersects(g1, g2, ctx3)
384-
end
385-
end
386-
GC.gc(true)
387-
return nothing
388-
end
389-
@test f91_mixed_contexts(91) === nothing
390372
@testset "clone" begin
391373
function f(n)
392374
# adapted from https://github.com/JuliaGeo/LibGEOS.jl/issues/91#issuecomment-1267732709

0 commit comments

Comments
 (0)