test: increase timeout significantly in dns/getaddrinfo_cancel_stress (for TSan)

Fixes: #1304
This commit is contained in:
Azat Khuzhin 2022-07-11 22:52:57 +03:00
parent 15780dd240
commit 213a822aa7

View File

@ -2072,7 +2072,15 @@ static void
gaic_launch(struct event_base *base, struct evdns_base *dns_base, unsigned i) gaic_launch(struct event_base *base, struct evdns_base *dns_base, unsigned i)
{ {
struct gaic_request_status *status = calloc(1,sizeof(*status)); struct gaic_request_status *status = calloc(1,sizeof(*status));
struct timeval tv = { 0, i % 2 ? 100000 : 1 }; struct timeval tv = { 0, 0 };
/// cancel via timer half of requests
if (i % 2) {
tv.tv_usec = 1;
} else {
tv.tv_sec = 10;
}
status->magic = GAIC_MAGIC; status->magic = GAIC_MAGIC;
status->base = base; status->base = base;
status->dns_base = dns_base; status->dns_base = dns_base;