mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-10-19 10:13:37 -04:00
16 lines
288 B
Go
16 lines
288 B
Go
|
// +build android
|
||
|
|
||
|
package internet
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestDNSResolver(t *testing.T) {
|
||
|
resolver := NewDNSResolver()
|
||
|
if ips, err := resolver.LookupIP(context.Background(), "ip", "www.google.com"); err != nil {
|
||
|
t.Errorf("failed to lookupIP, %v, %v", ips, err)
|
||
|
}
|
||
|
}
|