diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2021-01-23 10:52:17 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2021-01-23 10:52:17 +0900 |
commit | 9de68a52213873da84a5341fd3db15e5c8b6cb9a (patch) | |
tree | 32c7ae729b1df27f0db81f142f6f77ac8c82d76d | |
parent | a55eb9a2af7950d180d9d31ffde2bce66710f44f (diff) |
Fix a warning
```
.../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated
```
-rw-r--r-- | test/net/http/test_httpresponse.rb | 2 |
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| |