Commit 48624412 authored by Jan Včelák's avatar Jan Včelák 🚀

tests: use socket.gethostname() instead of socket.getfqdn()

No reasoning behind this change, except that it seems to work more
reliably. On my machine getfqdn() returns 'localhost.localdomain',
while Knot detects correct system canonical name. On distel, both
functions return the same result.
parent 9822a1ad
......@@ -25,7 +25,7 @@ resp.check('"' + name + '"')
# 2) FQDN hostname.
resp = server2.dig("id.server", "TXT", "CH")
resp.check(socket.getfqdn())
resp.check(socket.gethostname())
# 3) Explicitly disabled.
resp = server3.dig("id.server", "TXT", "CH")
......
......@@ -30,7 +30,7 @@ resp.check_edns(nsid=name)
# 2) FQDN hostname.
resp = server2.dig("example.com", "SOA", nsid=True)
resp.check_edns(nsid=socket.getfqdn())
resp.check_edns(nsid=socket.gethostname())
# 3) Explicitly disabled.
resp = server3.dig("example.com", "SOA", nsid=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment