From 0c131fb7ff0b927d8d7bf5824dcb19ed2efc926d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 26 Mar 2020 19:24:41 +0900 Subject: [ruby/net-ftp] Guard with under the Ruby 2.6 https://github.com/ruby/net-ftp/commit/bed4bc31db --- test/net/ftp/test_ftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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) -- cgit v1.2.3