@@ -19,7 +19,7 @@ func TestQUICNameServer(t *testing.T) {
19
19
common .Must (err )
20
20
s , err := NewQUICNameServer (url )
21
21
common .Must (err )
22
- ctx , cancel := context .WithTimeout (context .Background (), time .Second * 2 )
22
+ ctx , cancel := context .WithTimeout (context .Background (), time .Second * 5 )
23
23
ips , err := s .QueryIP (ctx , "google.com" , net .IP (nil ), dns_feature.IPOption {
24
24
IPv4Enable : true ,
25
25
IPv6Enable : true ,
@@ -36,7 +36,7 @@ func TestQUICNameServerWithCache(t *testing.T) {
36
36
common .Must (err )
37
37
s , err := NewQUICNameServer (url )
38
38
common .Must (err )
39
- ctx , cancel := context .WithTimeout (context .Background (), time .Second * 2 )
39
+ ctx , cancel := context .WithTimeout (context .Background (), time .Second * 5 )
40
40
ips , err := s .QueryIP (ctx , "google.com" , net .IP (nil ), dns_feature.IPOption {
41
41
IPv4Enable : true ,
42
42
IPv6Enable : true ,
@@ -47,7 +47,7 @@ func TestQUICNameServerWithCache(t *testing.T) {
47
47
t .Error ("expect some ips, but got 0" )
48
48
}
49
49
50
- ctx2 , cancel := context .WithTimeout (context .Background (), time .Second * 2 )
50
+ ctx2 , cancel := context .WithTimeout (context .Background (), time .Second * 5 )
51
51
ips2 , err := s .QueryIP (ctx2 , "google.com" , net .IP (nil ), dns_feature.IPOption {
52
52
IPv4Enable : true ,
53
53
IPv6Enable : true ,
0 commit comments