diff --git a/plugin/template/cname_test.go b/plugin/template/cname_test.go index 6ce6d7d2d..eef949e2d 100644 --- a/plugin/template/cname_test.go +++ b/plugin/template/cname_test.go @@ -31,7 +31,7 @@ func TestTruncatedCNAME(t *testing.T) { handler := Handler{ Zones: []string{"."}, Templates: []template{{ - regex: []*regexp.Regexp{regexp.MustCompile("^cname\\.test\\.$")}, + regex: []*regexp.Regexp{regexp.MustCompile(`^cname\.test\.$`)}, answer: []*gotmpl.Template{gotmpl.Must(gotmpl.New("answer").Parse(up.Answer[0].String()))}, qclass: dns.ClassINET, qtype: dns.TypeA,