0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-20 06:58:38 +03:00

fix: DNS tests timeout due to network instability

This commit is contained in:
AkinoKaede
2021-03-22 13:20:14 +08:00
parent 8382b29922
commit 58daa2f788
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import (
func TestLocalNameServer(t *testing.T) {
s := NewLocalNameServer()
ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ips, err := s.QueryIP(ctx, "google.com", net.IP{}, dns.IPOption{
IPv4Enable: true,
IPv6Enable: true,