micro/util/dns/cache_test.go
Evstigneev Denis 0081ec0f5e
All checks were successful
test / test (pull_request) Successful in 45s
lint / lint (pull_request) Successful in 10m5s
fixed linter error
2024-12-09 15:57:55 +03:00

21 lines
287 B
Go

package dns
import (
"net"
"testing"
)
func TestCache(t *testing.T) {
net.DefaultResolver = NewNetResolver(PreferIPV4(true))
_, err := net.LookupHost("unistack.org")
if err != nil {
t.Fatal(err)
}
_, err = net.LookupHost("unistack.org")
if err != nil {
t.Fatal(err)
}
}