mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-05 16:55:27 -05:00
fix: dns test default timeout too short
This commit is contained in:
@@ -162,6 +162,7 @@ func TestUDPDNSTunnel(t *testing.T) {
|
||||
m1.Question[0] = dns.Question{"ipv4only.google.com.", dns.TypeAAAA, dns.ClassINET}
|
||||
|
||||
c := new(dns.Client)
|
||||
c.Timeout = 10 * time.Second
|
||||
in, _, err := c.Exchange(m1, "127.0.0.1:"+strconv.Itoa(int(serverPort)))
|
||||
common.Must(err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user