mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
skip non-IP interfaces
* spec/ruby/library/socket/socket/getifaddrs_spec.rb: VirtualBox host only adapter seems something different than ordinary interfaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c3b2546411
commit
aa6c02a5a5
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ describe 'Socket.getifaddrs' do
|
|||
end
|
||||
end
|
||||
|
||||
platform_is_not :windows do
|
||||
platform_is_not :windows do
|
||||
describe 'the Socket::Ifaddr broadcast address' do
|
||||
before do
|
||||
@addrs = @ifaddrs.map(&:broadaddr).compact
|
||||
|
@ -83,7 +83,7 @@ describe 'Socket.getifaddrs' do
|
|||
|
||||
describe 'the Socket::Ifaddr netmask address' do
|
||||
before do
|
||||
@addrs = @ifaddrs.map(&:netmask).compact
|
||||
@addrs = @ifaddrs.map(&:netmask).compact.select(&:ip?)
|
||||
end
|
||||
|
||||
it 'is an Addrinfo' do
|
||||
|
|
Loading…
Add table
Reference in a new issue