fix: dns test default timeout too short

pull/2059/head
vcptr 2019-11-27 13:06:08 +08:00
parent 47660bfee2
commit 60603abee7
1 changed files with 1 additions and 0 deletions

View File

@ -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)