diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-04-27 21:17:43 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-04-27 21:19:14 +0900 |
commit | fb819d93316b4d17543a491752ec3a2984c69d70 (patch) | |
tree | 48cda4363bb47c528c0c786da48c44cde48d5f6f /test/net | |
parent | ac739f42eb85c86efe7a777f5ac6ef9c6cac0011 (diff) | |
download | ruby-fb819d93316b4d17543a491752ec3a2984c69d70.tar.gz |
[ruby/net-ftp] Re-apply 827e471d438fdec1ae329afb5912b8e06d534823
https://github.com/ruby/net-ftp/commit/3ca80368c4
Diffstat (limited to 'test/net')
-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 6cd32add90..928ed4d04b 100644 --- a/test/net/ftp/test_ftp.rb +++ b/test/net/ftp/test_ftp.rb @@ -2393,7 +2393,7 @@ EOF File.binwrite("./|echo hello", binary_data) begin ftp = Net::FTP.new - ftp.read_timeout = RubyVM::JIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait + ftp.read_timeout = defined?(RubyVM::JIT) && RubyVM::JIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait ftp.connect(SERVER_ADDR, server.port) ftp.login assert_match(/\AUSER /, commands.shift) |