diff --git a/home/dns_test.go b/home/dns_test.go index 49ff3212..52344279 100644 --- a/home/dns_test.go +++ b/home/dns_test.go @@ -1,10 +1,14 @@ package home import ( + "os" "testing" ) func TestResolveRDNS(t *testing.T) { + _ = os.RemoveAll(config.getDataDir()) + defer func() { _ = os.RemoveAll(config.getDataDir()) }() + config.DNS.BindHost = "1.1.1.1" initDNSServer() if r := config.dnsctx.rdns.resolve("1.1.1.1"); r != "one.one.one.one" {