aboutsummaryrefslogtreecommitdiff
path: root/middleware/autopath/autopath_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-08-10 19:27:54 +0100
committerGravatar GitHub <noreply@github.com> 2017-08-10 19:27:54 +0100
commit4d0dae8debd39ad44dc25da884cc447d2d84bcde (patch)
tree5922c3c2f132f37bb8d3e1a90da340e3bf080451 /middleware/autopath/autopath_test.go
parent6cc3f47d466b7c6dda57d4fb8abb784dd278c495 (diff)
downloadcoredns-4d0dae8debd39ad44dc25da884cc447d2d84bcde.tar.gz
coredns-4d0dae8debd39ad44dc25da884cc447d2d84bcde.tar.zst
coredns-4d0dae8debd39ad44dc25da884cc447d2d84bcde.zip
middleware/autopath: some fixes (#883)
* middleware/autopath: some fixes This fix a small issue in autopath, but unearthed a bigger one. See #881. * Fix test
Diffstat (limited to 'middleware/autopath/autopath_test.go')
-rw-r--r--middleware/autopath/autopath_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/middleware/autopath/autopath_test.go b/middleware/autopath/autopath_test.go
index a536ee1fd..719389446 100644
--- a/middleware/autopath/autopath_test.go
+++ b/middleware/autopath/autopath_test.go
@@ -31,6 +31,7 @@ var autopathTestCases = []test.Case{
func newTestAutoPath() *AutoPath {
ap := new(AutoPath)
+ ap.Zones = []string{"."}
ap.Next = nextHandler(map[string]int{
"b.example.org.": dns.RcodeNameError,
"b.com.": dns.RcodeSuccess,