tests-extra/dnsheader: remove timeout and tries dig parameters

This commit is contained in:
Daniel Salzman 2017-01-13 10:41:49 +01:00
parent 6724dd005d
commit a3ecb0e358

View file

@ -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()