diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-03-26 19:24:41 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-08 15:50:48 +0900 |
commit | 0c131fb7ff0b927d8d7bf5824dcb19ed2efc926d (patch) | |
tree | 2daeee577a8b0bcbb64b9121812b107ecd75c920 /test/net/ftp | |
parent | 484ed0d2a506dd89219a47cd6823875d86ab6ffa (diff) | |
download | ruby-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/ftp')
-rw-r--r-- | test/net/ftp/test_ftp.rb | 2 |
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) |