Fix delicate getaddrinfo test