]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use integer placeholder in config template in `test_Dnstap.py`
authorEnsar Sarajčić <es.ensar@gmail.com>
Fri, 7 Feb 2025 14:09:14 +0000 (15:09 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2025 14:09:14 +0000 (15:09 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
regression-tests.dnsdist/test_Dnstap.py

index a57f771b843f41fb4b18504aa8af8ec5f9f059bb..d19ee1cb7bd6a89cfd9a934841d54038f7a5677b 100644 (file)
@@ -522,8 +522,8 @@ class TestDnstapOverRemotePoolTcpLogger(DNSDistTest):
     _poolConnectionCount = 5
     _config_params = ['_testServerPort', '_fstrmLoggerPort', '_poolConnectionCount']
     _config_template = """
-    newServer{address="127.0.0.1:%s", useClientSubnet=true}
-    fslu = newFrameStreamTcpLogger('127.0.0.1:%s', { connectionCount = %s })
+    newServer{address="127.0.0.1:%d", useClientSubnet=true}
+    fslu = newFrameStreamTcpLogger('127.0.0.1:%d', { connectionCount = %d })
 
     addAction(AllRule(), DnstapLogAction("a.server", fslu))
     """