Skip to content

Commit 3ca8036

Browse files
committed
Re-apply 827e471
1 parent 9867042 commit 3ca8036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/net/ftp/test_ftp.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2428,7 +2428,7 @@ def test_putbinaryfile_command_injection
24282428
File.binwrite("./|echo hello", binary_data)
24292429
begin
24302430
ftp = Net::FTP.new
2431-
ftp.read_timeout = RubyVM::JIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait
2431+
ftp.read_timeout = defined?(RubyVM::JIT) && RubyVM::JIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait
24322432
ftp.connect(SERVER_ADDR, server.port)
24332433
ftp.login
24342434
assert_match(/\AUSER /, commands.shift)

0 commit comments

Comments
 (0)