From 5f39e1d9461af3f7c0212bd26f76c80dd614dc06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 21 May 2026 11:52:56 +0200 Subject: [PATCH] Drop unnecessary qctx.prepare_new_response() call The ans3 custom server does not have any zones defined, so the responses passed to its handlers by core isctest.asyncserver code are guaranteed to be empty. Remove a call to qctx.prepare_new_response() from CookieHandler.get_responses() as it is redundant. (cherry picked from commit 802c03313f99f622b979aa3bb548e3a4eb4340d3) --- bin/tests/system/resend_loop/ans3/ans.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/tests/system/resend_loop/ans3/ans.py b/bin/tests/system/resend_loop/ans3/ans.py index 9a1ccf97cf..f6543e0eac 100644 --- a/bin/tests/system/resend_loop/ans3/ans.py +++ b/bin/tests/system/resend_loop/ans3/ans.py @@ -67,8 +67,6 @@ class CookieHandler(DomainHandler): self, qctx: QueryContext ) -> AsyncGenerator[DnsResponseSend, None]: - qctx.prepare_new_response() - # Check for client cookie cookie = _get_cookie(qctx)