- fix tests and linter issues

This commit is contained in:
Simon Zolin
2019-05-30 15:36:39 +03:00
parent 147344afa3
commit 3baa6919dc
8 changed files with 29 additions and 32 deletions

View File

@@ -3,7 +3,9 @@ package main
import "testing"
func TestResolveRDNS(t *testing.T) {
if r := resolveRDNS("1.1.1.1", "1.1.1.1"); r != "one.one.one.one" {
config.DNS.BindHost = "1.1.1.1"
initDNSServer(".")
if r := resolveRDNS("1.1.1.1"); r != "one.one.one.one" {
t.Errorf("resolveRDNS(): %s", r)
}
}