mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
Made the dns recursor timeout test more reliable
This commit is contained in:
parent
d9bd41fc4d
commit
db8ff0a582
@ -1405,7 +1405,7 @@ func TestDNS_RecursorTimeout(t *testing.T) {
|
|||||||
testClientTimeout := serverClientTimeout + 5*time.Second
|
testClientTimeout := serverClientTimeout + 5*time.Second
|
||||||
|
|
||||||
dir, srv := makeDNSServerConfig(t, func(c *Config) {
|
dir, srv := makeDNSServerConfig(t, func(c *Config) {
|
||||||
c.DNSRecursor = "127.0.0.77" // must be an unreachable host
|
c.DNSRecursor = "10.255.255.1" // host must cause a connection|read|write timeout
|
||||||
}, func(c *DNSConfig) {
|
}, func(c *DNSConfig) {
|
||||||
c.RecursorTimeout = serverClientTimeout
|
c.RecursorTimeout = serverClientTimeout
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user