aboutsummaryrefslogtreecommitdiffstats
path: root/test/net
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-26 19:24:41 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-04-08 15:50:48 +0900
commit0c131fb7ff0b927d8d7bf5824dcb19ed2efc926d (patch)
tree2daeee577a8b0bcbb64b9121812b107ecd75c920 /test/net
parent484ed0d2a506dd89219a47cd6823875d86ab6ffa (diff)
downloadruby-0c131fb7ff0b927d8d7bf5824dcb19ed2efc926d.tar.gz
[ruby/net-ftp] Guard with under the Ruby 2.6
https://github.com/ruby/net-ftp/commit/bed4bc31db
Diffstat (limited to 'test/net')
-rw-r--r--test/net/ftp/test_ftp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index 3f86d16995..affe3009c8 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -2274,7 +2274,7 @@ EOF
begin
ftp = Net::FTP.new
ftp.resume = resume
- ftp.read_timeout = RubyVM::MJIT.enabled? ? 5 : 0.2 # use large timeout for --jit-wait
+ ftp.read_timeout = (defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?) ? 5 : 0.2 # use large timeout for --jit-wait
ftp.connect(SERVER_ADDR, server.port)
ftp.login
assert_match(/\AUSER /, commands.shift)