Skip to content

Commit

Permalink
Re-apply 827e471
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Apr 27, 2021
1 parent 9867042 commit 3ca8036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/net/ftp/test_ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@ def test_putbinaryfile_command_injection
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)
Expand Down

0 comments on commit 3ca8036

Please sign in to comment.