fix: mock DNS in resolver tests for deterministic fast suite (closes #32) #33

Closed
clawbot wants to merge 1 commits from fix/mock-resolver-tests into main

1 Commits

Author SHA1 Message Date
clawbot
889855306f fix: mock DNS in resolver tests for deterministic fast suite
All checks were successful
Check / check (pull_request) Successful in 10m24s
Replace all real DNS queries in resolver_test.go with a mock DNSClient
that simulates the full iterative resolution hierarchy (root → TLD → auth NS).

- Uses NewFromLoggerWithClient with mock DNSClient
- All 28 test behaviors preserved (NS lookup, A/AAAA/MX/TXT, NXDOMAIN,
  sorting, dedup, context cancellation, trailing dots)
- Tests pass with -race flag, no data races
- Total resolver test time: ~1.5s (was >30s)
- Zero linter issues

Closes #32
2026-02-22 04:25:33 -08:00