many lint fixes and optimizations (#17)
* util/kubernetes: drop stale files * debug/log/kubernetes: drop stale files * util/scope: remove stale files * util/mdns: drop stale files * lint fixes Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
14
resolver/dns/dns_test.go
Normal file
14
resolver/dns/dns_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package dns
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestResolver(t *testing.T) {
|
||||
r := &Resolver{}
|
||||
recs, err := r.Resolve("unistack.org")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(recs) < 1 {
|
||||
t.Fatalf("records not resolved: %v", recs)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user