From a16e0f741912cc87d6458557e62b893f65214336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Sodre=CC=81?= Date: Thu, 10 Aug 2017 00:43:24 -0400 Subject: [PATCH] Fix editorial suggestions --- agent/dns.go | 2 +- agent/dns_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/dns.go b/agent/dns.go index fa93b51c4..5259ae24a 100644 --- a/agent/dns.go +++ b/agent/dns.go @@ -485,7 +485,7 @@ INVALID: // nodeLookup is used to handle a node query func (d *DNSServer) nodeLookup(network, datacenter, node string, req, resp *dns.Msg) { - // Only handle ANY, A, AAAA and TXT type requests + // Only handle ANY, A, AAAA, and TXT type requests qType := req.Question[0].Qtype if qType != dns.TypeANY && qType != dns.TypeA && qType != dns.TypeAAAA && qType != dns.TypeTXT { return diff --git a/agent/dns_test.go b/agent/dns_test.go index 128bb5323..1ce92484f 100644 --- a/agent/dns_test.go +++ b/agent/dns_test.go @@ -343,7 +343,7 @@ func TestDNS_NodeLookup_CNAME(t *testing.T) { t.Fatalf("err: %v", err) } - // Should have the service record, CNAME record + A + TXT record + // Should have the service, CNAME, A, and TXT records if len(in.Answer) != 4 { t.Fatalf("Bad: %#v", in) }