From db8ff0a5829db8c35b610ef1c9c25b3aae02674c Mon Sep 17 00:00:00 2001 From: Pierre Delagrave Date: Mon, 29 Aug 2016 13:23:14 -0400 Subject: [PATCH] Made the dns recursor timeout test more reliable --- command/agent/dns_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/dns_test.go b/command/agent/dns_test.go index 016aa0c16d..28db5e849f 100644 --- a/command/agent/dns_test.go +++ b/command/agent/dns_test.go @@ -1405,7 +1405,7 @@ func TestDNS_RecursorTimeout(t *testing.T) { testClientTimeout := serverClientTimeout + 5*time.Second 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) { c.RecursorTimeout = serverClientTimeout })