diff --git a/spec/ruby/library/socket/socket/getaddrinfo_spec.rb b/spec/ruby/library/socket/socket/getaddrinfo_spec.rb index bc6e9e8f9d..c9e2e7b13c 100644 --- a/spec/ruby/library/socket/socket/getaddrinfo_spec.rb +++ b/spec/ruby/library/socket/socket/getaddrinfo_spec.rb @@ -278,11 +278,11 @@ describe 'Socket.getaddrinfo' do platform_is_not :windows do it 'accepts a Fixnum as the protocol family' do - addr = Socket.getaddrinfo(nil, 'http', :INET, :DGRAM, Socket::IPPROTO_UDP) + addr = Socket.getaddrinfo(nil, 'discard', :INET, :DGRAM, Socket::IPPROTO_UDP) addr[0].should == [ 'AF_INET', - 80, + 9, '127.0.0.1', '127.0.0.1', Socket::AF_INET,