Feature #14340
closed[PATCH/RFC] exclude expensive MDNS test
Description
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
Updated by znz (Kazuhiro NISHIYAMA) over 8 years ago
How about adding timeouts instead of excluding?
Updated by normalperson (Eric Wong) over 8 years ago
zn@mbf.nifty.com wrote:
How about adding timeouts instead of excluding?
I get no results with that; so the assert_not_nil won't be reached
Updated by znz (Kazuhiro NISHIYAMA) over 8 years ago
I get no results on my mac too.
So I think it is expected behavior in network without requested resources.
And I get a result on another network.
% time ruby test.rb
#<Resolv::IPv4 192.168.zzz.www>
real:0.39s user:0.14s sys:0.08s cpu:55% mem:0+0k 216pf+0w IO:38+0 ruby test.rb
Both returns <0.5s, so I think timeouts=1.0s is enough.
Updated by naruse (Yui NARUSE) over 8 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r61774.
Mock fetching data from real DNS [Feature #14340]
This test just tests MDNS#each_address method.
Updated by normalperson (Eric Wong) over 8 years ago
Thank you naruse!