Explorar o código

fix: dns test default timeout too short

vcptr %!s(int64=6) %!d(string=hai) anos
pai
achega
60603abee7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      proxy/dns/dns_test.go

+ 1 - 0
proxy/dns/dns_test.go

@@ -162,6 +162,7 @@ func TestUDPDNSTunnel(t *testing.T) {
 		m1.Question[0] = dns.Question{"ipv4only.google.com.", dns.TypeAAAA, dns.ClassINET}
 		m1.Question[0] = dns.Question{"ipv4only.google.com.", dns.TypeAAAA, dns.ClassINET}
 
 
 		c := new(dns.Client)
 		c := new(dns.Client)
+		c.Timeout = 10 * time.Second
 		in, _, err := c.Exchange(m1, "127.0.0.1:"+strconv.Itoa(int(serverPort)))
 		in, _, err := c.Exchange(m1, "127.0.0.1:"+strconv.Itoa(int(serverPort)))
 		common.Must(err)
 		common.Must(err)