diff --git a/test/regress_dns.c b/test/regress_dns.c index 60f59956..8f853253 100644 --- a/test/regress_dns.c +++ b/test/regress_dns.c @@ -1219,12 +1219,12 @@ test_getaddrinfo_async(void *arg) /* for localhost */ evdns_base_load_hosts(dns_base, NULL); - tt_assert(! evdns_base_set_option(dns_base, "timeout", "0.3")); - tt_assert(! evdns_base_set_option(dns_base, "getaddrinfo-allow-skew", "0.2")); - memset(a_out, 0, sizeof(a_out)); memset(&local_outcome, 0, sizeof(local_outcome)); + tt_assert(! evdns_base_set_option(dns_base, "timeout", "0.3")); + tt_assert(! evdns_base_set_option(dns_base, "getaddrinfo-allow-skew", "0.2")); + n_gai_results_pending = 10000; /* don't think about exiting yet. */ /* 1. Try some cases that will never hit the asynchronous resolver. */