Skip to content
Snippets Groups Projects
Commit a3ecb0e3 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

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

parent 6724dd00
No related branches found
No related tags found
No related merge requests found
#!/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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment