From 60603abee785f54f03f30d9370a87b70c93e7cfd Mon Sep 17 00:00:00 2001 From: vcptr <51714622+vcptr@users.noreply.github.com> Date: Wed, 27 Nov 2019 13:06:08 +0800 Subject: [PATCH] fix: dns test default timeout too short --- proxy/dns/dns_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/dns/dns_test.go b/proxy/dns/dns_test.go index da9175968..441979433 100644 --- a/proxy/dns/dns_test.go +++ b/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)