Skip to content

Commit d8f9ea8

Browse files
znznobu
authored andcommitted
Fix a warning
``` .../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated ``` ruby/ruby@9de68a522138
1 parent 774896f commit d8f9ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/net/http/test_httpresponse.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_read_body_block
7878

7979
def test_read_body_block_mod
8080
# http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3019353
81-
if defined?(RubyVM::JIT) && RubyVM::JIT.enabled? || defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
81+
if defined?(RubyVM::JIT) ? RubyVM::JIT.enabled? : defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
8282
skip 'too unstable with --jit-wait, and extending read_timeout did not help it'
8383
end
8484
IO.pipe do |r, w|

0 commit comments

Comments
 (0)