1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix a warning

```
.../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated
```
This commit is contained in:
Kazuhiro NISHIYAMA 2021-01-23 10:52:17 +09:00
parent a55eb9a2af
commit 9de68a5221
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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|