File: 0012-Disable-jruby-flaky-tests.patch

package info (click to toggle)
jruby 9.1.17.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 71,608 kB
  • sloc: ruby: 505,916; java: 237,875; xml: 31,161; ansic: 7,152; yacc: 4,605; sh: 887; makefile: 108; jsp: 48; tcl: 40
file content (42 lines) | stat: -rw-r--r-- 957 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: Disable flaky tests in jruby test suite
Author: Miguel Landaeta <nomadium@debian.org>
Forwarded: no
Last-Update: 2017-04-04

--- jruby-9.1.8.0.orig/test/jruby/test_thread.rb
+++ jruby-9.1.8.0/test/jruby/test_thread.rb
@@ -178,20 +178,21 @@ class TestThread < Test::Unit::TestCase
   end
 
   # JRUBY-2021
-  def test_multithreaded_method_definition
-    def run_me
-      sleep 0.1
-      def do_stuff
-        sleep 0.1
-      end
-    end
+  # flaky test in Debian
+  # def test_multithreaded_method_definition
+  #   def run_me
+  #     sleep 0.1
+  #     def do_stuff
+  #       sleep 0.1
+  #     end
+  #   end
 
-    threads = []
-    100.times {
-      threads << Thread.new { run_me }
-    }
-    threads.each { |t| t.join }
-  end
+  #   threads = []
+  #   100.times {
+  #     threads << Thread.new { run_me }
+  #   }
+  #   threads.each { |t| t.join }
+  # end
 
   def test_socket_accept_can_be_interrupted
     require 'socket'