From d8f9ea8763f5d77791bc5655e61383dacd534f84 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 ``` ruby/ruby@9de68a522138 --- 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 ea2a121c..cb86b546 100644 --- a/test/net/http/test_httpresponse.rb +++ b/test/net/http/test_httpresponse.rb @@ -78,7 +78,7 @@ def test_read_body_block 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|