mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
Fixes unit test fail due to expected truncated message.
This commit is contained in:
parent
081b9165ca
commit
98731f7272
@ -1406,7 +1406,7 @@ func TestDNS_ServiceLookup_Truncate(t *testing.T) {
|
|||||||
addr, _ := srv.agent.config.ClientListener("", srv.agent.config.Ports.DNS)
|
addr, _ := srv.agent.config.ClientListener("", srv.agent.config.Ports.DNS)
|
||||||
c := new(dns.Client)
|
c := new(dns.Client)
|
||||||
in, _, err := c.Exchange(m, addr.String())
|
in, _, err := c.Exchange(m, addr.String())
|
||||||
if err != nil {
|
if err != nil && err != dns.ErrTruncated {
|
||||||
t.Fatalf("err: %v", err)
|
t.Fatalf("err: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user