Issue #14340 has been updated by znz (Kazuhiro NISHIYAMA).


How about adding timeouts instead of excluding?

~~~ruby
require 'resolv'
mdns = Resolv::MDNS.new
mdns.timeouts = 1.0
mdns.each_resource '_http._tcp.local', Resolv::DNS::Resource::IN::PTR do |r|
  srv = mdns.getresource r.name, Resolv::DNS::Resource::IN::SRV
  mdns.each_address(srv.target) do |result|
    p(result)
  end
end
~~~

----------------------------------------
Feature #14340: [PATCH/RFC] exclude expensive MDNS test
https://bugs.ruby-lang.org/issues/14340#change-69480

* Author: normalperson (Eric Wong)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
test/excludes: exclude expensive MDNS resolv test

This test takes around 80s on my Debian GNU/Linux systems, not
sure if there's a misconfiguration on my part or a bug
somewhere.  Other opinions wanted (I am not knowledgeable with
MDNS stuff at all)

* test/excludes/TestResolvMDNS.rb: new exclude


---Files--------------------------------
0001-test-excludes-exclude-expensive-MDNS-resolv-test.patch (871 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>