From 9de68a52213873da84a5341fd3db15e5c8b6cb9a Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Sat, 23 Jan 2021 10:52:17 +0900 Subject: [PATCH] Fix a warning ``` .../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated ``` --- test/net/http/test_httpresponse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb index ea2a121c20..cb86b54648 100644 --- a/test/net/http/test_httpresponse.rb +++ b/test/net/http/test_httpresponse.rb @@ -78,7 +78,7 @@ EOS def test_read_body_block_mod # http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3019353 - if defined?(RubyVM::JIT) && RubyVM::JIT.enabled? || defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? + if defined?(RubyVM::JIT) ? RubyVM::JIT.enabled? : defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? skip 'too unstable with --jit-wait, and extending read_timeout did not help it' end IO.pipe do |r, w|