瀏覽代碼

fix: dns test default timeout too short

vcptr 6 年之前
父節點
當前提交
60603abee7
共有 1 個文件被更改,包括 1 次插入0 次删除
  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}
 
 		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)