From f7ef84812db82de065a4f57dafb6c4268bbd8e55 Mon Sep 17 00:00:00 2001 From: Kyle Havlovitz Date: Thu, 27 Oct 2016 19:14:02 -0700 Subject: [PATCH] Fix test cases --- command/agent/dns_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/command/agent/dns_test.go b/command/agent/dns_test.go index 09281dbfb2..edd5ffe626 100644 --- a/command/agent/dns_test.go +++ b/command/agent/dns_test.go @@ -1039,7 +1039,7 @@ func TestDNS_ServiceLookup_ServiceAddress(t *testing.T) { if srvRec.Port != 12345 { t.Fatalf("Bad: %#v", srvRec) } - if srvRec.Target != "foo.node.dc1.consul." { + if srvRec.Target != "7f000002.addr.dc1.consul." { t.Fatalf("Bad: %#v", srvRec) } if srvRec.Hdr.Ttl != 0 { @@ -1050,7 +1050,7 @@ func TestDNS_ServiceLookup_ServiceAddress(t *testing.T) { if !ok { t.Fatalf("Bad: %#v", in.Extra[0]) } - if aRec.Hdr.Name != "foo.node.dc1.consul." { + if aRec.Hdr.Name != "7f000002.addr.dc1.consul." { t.Fatalf("Bad: %#v", in.Extra[0]) } if aRec.A.String() != "127.0.0.2" { @@ -1157,7 +1157,7 @@ func TestDNS_ServiceLookup_WanAddress(t *testing.T) { if !ok { t.Fatalf("Bad: %#v", in.Extra[0]) } - if aRec.Hdr.Name != "foo.node.dc2.consul." { + if aRec.Hdr.Name != "7f000002.addr.dc2.consul." { t.Fatalf("Bad: %#v", in.Extra[0]) } if aRec.A.String() != "127.0.0.2" { @@ -3193,7 +3193,7 @@ func TestDNS_PreparedQuery_Failover(t *testing.T) { if !ok { t.Fatalf("Bad: %#v", in.Answer[0]) } - if srv.Target != "foo.node.dc2.consul." { + if srv.Target != "7f000002.addr.dc2.consul." { t.Fatalf("Bad: %#v", in.Answer[0]) } @@ -3201,7 +3201,7 @@ func TestDNS_PreparedQuery_Failover(t *testing.T) { if !ok { t.Fatalf("Bad: %#v", in.Extra[0]) } - if a.Hdr.Name != "foo.node.dc2.consul." { + if a.Hdr.Name != "7f000002.addr.dc2.consul." { t.Fatalf("Bad: %#v", in.Extra[0]) } if a.A.String() != "127.0.0.2" {