From 85aa134431b1a4c10b24aebfdbd252d41a3fa2a8 Mon Sep 17 00:00:00 2001 From: Nate Berkopec Date: Sat, 14 Mar 2020 13:43:06 -0600 Subject: [PATCH] Don't run worker integration on JRuby --- test/shell/run.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/shell/run.rb b/test/shell/run.rb index 8c83a392..b25ea126 100644 --- a/test/shell/run.rb +++ b/test/shell/run.rb @@ -1,4 +1,13 @@ -results = %w[t1 t2 t3].map do |test| +require "puma" +require "puma/detect" + +TESTS_TO_RUN = if Puma.jruby? + %w[t1 t2] +else + %w[t1 t2 t3] +end + +results = TESTS_TO_RUN.map do |test| system("ruby -rrubygems test/shell/#{test}.rb ") # > /dev/null 2>&1 end