[ruby/net-ftp] Guard with under the Ruby 2.6
https://github.com/ruby/net-ftp/commit/bed4bc31db
This commit is contained in:
parent
484ed0d2a5
commit
0c131fb7ff
@ -2274,7 +2274,7 @@ EOF
|
|||||||
begin
|
begin
|
||||||
ftp = Net::FTP.new
|
ftp = Net::FTP.new
|
||||||
ftp.resume = resume
|
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.connect(SERVER_ADDR, server.port)
|
||||||
ftp.login
|
ftp.login
|
||||||
assert_match(/\AUSER /, commands.shift)
|
assert_match(/\AUSER /, commands.shift)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user