Use {mock,unmock}_hostname_resolver() in relevant tests

These tests all invoke the hostname resolver in one way or another,
and therefore potentially block if our DNS server is missing,
absent, or extremely slow.  Closes ticket 31841.
This commit is contained in:
Nick Mathewson
2019-10-03 08:57:14 -04:00
parent 4a0749596c
commit fdfb4b196b
5 changed files with 22 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor features (testing):
- When running tests that attempt to look up hostname, replace the libc
name lookup functions with ones that do not actually touch the network.
This way, the tests complete more quickly in the presence of a slow or
missing DNS resolver. Closes ticket 31841.