From 802c03313f99f622b979aa3bb548e3a4eb4340d3 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. --- 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 f8a745bfaa..860a2403ee 100644 --- a/bin/tests/system/resend_loop/ans3/ans.py +++ b/bin/tests/system/resend_loop/ans3/ans.py @@ -74,8 +74,6 @@ class CookieHandler(DomainHandler): self, qctx: QueryContext ) -> AsyncGenerator[DnsResponseSend, None]: - qctx.prepare_new_response() - # Check for client cookie cookie = _get_cookie(qctx)