Skip to content

Commit a56ba12

Browse files
committed
Added guard condition for the old ruby versions
1 parent c5e7ba2 commit a56ba12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/net/ftp/test_ftp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def test_retrbinary_fail
736736

737737
def test_getbinaryfile
738738
# http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20200326-025942
739-
skip 'This has been too unstable with --jit-wait' if RubyVM::MJIT.enabled?
739+
skip 'This has been too unstable with --jit-wait' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
740740
commands = []
741741
binary_data = (0..0xff).map {|i| i.chr}.join * 4 * 3
742742
server = create_ftp_server { |sock|
@@ -2186,7 +2186,7 @@ def test_tls_connect_timeout
21862186
def test_abort_tls
21872187
return unless defined?(OpenSSL)
21882188
# http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2789353
2189-
skip 'This is unstable with --jit-wait. TODO: debug it' if RubyVM::MJIT.enabled?
2189+
skip 'This is unstable with --jit-wait. TODO: debug it' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
21902190

21912191
commands = []
21922192
server = create_ftp_server { |sock|

0 commit comments

Comments
 (0)