mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-06-03 21:53:02 -04:00
tests-extra/dnsheader: remove timeout and tries dig parameters
This commit is contained in:
parent
6724dd005d
commit
a3ecb0e358
1 changed files with 4 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue