CRITICAL: make check hangs on main — resolver tests do real DNS lookups #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
make checkon main hangs indefinitely. The resolver tests ininternal/resolver/perform iterative DNS resolution starting from root nameservers, which can take >60s or hang entirely.Root Cause
All resolver tests use
testContext()with a 60-second timeout and perform real network DNS queries. Thego testcommand in the Makefile has no timeout flag, so a hanging test blocks forever.Fix
-shortand-timeout 30sflags togo testinmake check-shortis setgo test -v -race ./internal/resolver/...See PR #21.