Skip to content

Commit 28dbe49

Browse files
committed
Skip "removes local paths on garbage collection" on JRuby
This spec is flaky on JRuby, especially on JRuby 10.
1 parent 780d4ea commit 28dbe49

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

spec/rack/test/uploaded_file_spec.rb

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,9 @@ def local_paths(n)
6262
end
6363

6464
it 'removes local paths on garbage collection' do
65-
66-
if RUBY_PLATFORM == 'java'
67-
require 'java'
68-
java_import 'java.lang.System'
69-
70-
paths = local_paths(500)
71-
System.gc
72-
else
73-
paths = local_paths(50)
74-
GC.start
75-
end
76-
65+
skip "flaky on JRuby" if RUBY_PLATFORM == 'java'
66+
paths = local_paths(50)
67+
GC.start
7768
paths.all?{|f| File.exist?(f)}.must_equal false
7869
end
7970

0 commit comments

Comments
 (0)