Skip to content

Commit 827e471

Browse files
committed
Support to Ruby 2.5
1 parent 3ca3854 commit 827e471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/net/ftp/test_ftp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ def test_putbinaryfile_command_injection
23932393
File.binwrite("./|echo hello", binary_data)
23942394
begin
23952395
ftp = Net::FTP.new
2396-
ftp.read_timeout = RubyVM::MJIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait
2396+
ftp.read_timeout = defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? ? 300 : 0.2 # use large timeout for --jit-wait
23972397
ftp.connect(SERVER_ADDR, server.port)
23982398
ftp.login
23992399
assert_match(/\AUSER /, commands.shift)

0 commit comments

Comments
 (0)