We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca3854 commit 827e471Copy full SHA for 827e471
test/net/ftp/test_ftp.rb
@@ -2393,7 +2393,7 @@ def test_putbinaryfile_command_injection
2393
File.binwrite("./|echo hello", binary_data)
2394
begin
2395
ftp = Net::FTP.new
2396
- ftp.read_timeout = RubyVM::MJIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait
+ ftp.read_timeout = defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait
2397
ftp.connect(SERVER_ADDR, server.port)
2398
ftp.login
2399
assert_match(/\AUSER /, commands.shift)
0 commit comments