aboutsummaryrefslogtreecommitdiff
path: root/middleware/proxy/upstream_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-04-12 22:34:44 +0100
committerGravatar Miek Gieben <miek@miek.nl> 2016-04-12 22:34:44 +0100
commit25cf16af0e816a2b321cf9ed46e91c1ef067927e (patch)
treea786606d66313a136e03275db59e7efd1e3ef285 /middleware/proxy/upstream_test.go
parent842953f17936ac02a7d9c82cb31ef70b5bcc1dc5 (diff)
downloadcoredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.tar.gz
coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.tar.zst
coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.zip
Use dns.IsSubDomain (#112)
For the match function use the proper thing from go dns. Fix all callers and tests to use this. Fixes: #107
Diffstat (limited to 'middleware/proxy/upstream_test.go')
-rw-r--r--middleware/proxy/upstream_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/proxy/upstream_test.go b/middleware/proxy/upstream_test.go
index 6f96d7ce2..3d69ca8fb 100644
--- a/middleware/proxy/upstream_test.go
+++ b/middleware/proxy/upstream_test.go
@@ -70,7 +70,7 @@ func TestAllowedPaths(t *testing.T) {
for i, test := range tests {
isAllowed := upstream.IsAllowedPath(test.name)
if test.expected != isAllowed {
- t.Errorf("Test %d: expected %v found %v", i+1, test.expected, isAllowed)
+ t.Errorf("Test %d: expected %v found %v for %s", i+1, test.expected, isAllowed, test.name)
}
}
}