summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-01-23 10:52:17 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-01-23 10:52:17 +0900
commit9de68a52213873da84a5341fd3db15e5c8b6cb9a (patch)
tree32c7ae729b1df27f0db81f142f6f77ac8c82d76d /test/net
parenta55eb9a2af7950d180d9d31ffde2bce66710f44f (diff)
Fix a warning
``` .../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated ```
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_httpresponse.rb2
1 files changed, 1 insertions, 1 deletions
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|