We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9867042 commit 3ca8036Copy full SHA for 3ca8036
test/net/ftp/test_ftp.rb
@@ -2428,7 +2428,7 @@ def test_putbinaryfile_command_injection
2428
File.binwrite("./|echo hello", binary_data)
2429
begin
2430
ftp = Net::FTP.new
2431
- 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
2432
ftp.connect(SERVER_ADDR, server.port)
2433
ftp.login
2434
assert_match(/\AUSER /, commands.shift)
0 commit comments