Vasiliy Tolstov
82248eb3b0
* 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>
15 lines
228 B
Go
15 lines
228 B
Go
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)
|
|
}
|
|
}
|