diff --git a/tests-extra/tests/security/dnsheader/test.py b/tests-extra/tests/security/dnsheader/test.py index 800464d5e..a32fa736b 100644 --- a/tests-extra/tests/security/dnsheader/test.py +++ b/tests-extra/tests/security/dnsheader/test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -'''DNS packet header parsing tests. ''' +'''DNS packet header parsing tests.''' import socket from dnstest.test import Test @@ -21,11 +21,11 @@ data = '\x00' max_len = (12 + 5) # Header + minimal question size udp_socket = knot.create_sock(socket.SOCK_DGRAM) for i in range(1, max_len): - knot.send_raw(data * i, udp_socket) + knot.send_raw(data * i, udp_socket) udp_socket.close() -# Check if the server is still alive -resp = knot.dig("example.com", "SOA", timeout=5, tries=1) +# Check if the server is still alive +resp = knot.dig("example.com", "SOA") resp.check(rcode="NOERROR") t.end()