From d2facdae42e57906acad7d96557ee107f61aa322 Mon Sep 17 00:00:00 2001 From: Kirill Rodriguez Date: Thu, 31 Oct 2024 10:18:22 +0000 Subject: [PATCH] hitting cache makes cancel stress test unreliable Signed-off-by: Kirill Rodriguez --- test/regress_dns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/regress_dns.c b/test/regress_dns.c index 6f92aa9f..70bdc885 100644 --- a/test/regress_dns.c +++ b/test/regress_dns.c @@ -2547,7 +2547,8 @@ test_getaddrinfo_async_cancel_stress(void *ptr) unsigned i; base = event_base_new(); - dns_base = evdns_base_new(base, 0); + /* if we keep hitting cache this test becomes unreliable */ + dns_base = evdns_base_new(base, EVDNS_BASE_NO_CACHE); memset(&sin, 0, sizeof(sin)); sin.sin_family = AF_INET;