Project

General

Profile

« Previous | Next » 

Revision b20957bd

Added by sorah (Sorah Fukumori) 10 months ago

[ruby/resolv] test_dns: Fix failure on Windows
(https://github.com/ruby/resolv/pull/58)

test_dns: Fix failure on Windows

  1. Switch to #with_udp_and_tcp helper method for EACCES retries on Windows;
    the given UDP socket is unnecessary though.
  2. Using 127.0.0.1 should be fine, as it must give different host:port pair.
  3. On Windows, 5 retries of bind(2) appears still flaky, doubling it for sure.

follow-up: https://github.com/ruby/resolv/pull/50
follow-up: https://github.com/ruby/resolv/commit/6252914e95dfdf8995d8074df6cafe6f0a76c1ca

https://github.com/ruby/resolv/commit/0a0d57e369