aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-11-05 14:39:49 +0000
committerGravatar GitHub <noreply@github.com> 2016-11-05 14:39:49 +0000
commit2cca527d9f17fd1595366545c47630bf35591873 (patch)
treed9cda7808a085db5705bdbbffc7bc8e36824356e /test
parentd6902cd7a1e70149268925453289681536b88195 (diff)
downloadcoredns-2cca527d9f17fd1595366545c47630bf35591873.tar.gz
coredns-2cca527d9f17fd1595366545c47630bf35591873.tar.zst
coredns-2cca527d9f17fd1595366545c47630bf35591873.zip
middleware/file: fix delegations (#376)
Fix the delegation handling in the *file* and *dnssec* middleware. Refactor tests a bit and show that they are failling. Add a Tree printer, cleanups and tests. Fix wildcard test - should get no answer from empty-non-terminal
Diffstat (limited to 'test')
-rw-r--r--test/wildcard_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/wildcard_test.go b/test/wildcard_test.go
index 3a66dd7ca..57cfdc75a 100644
--- a/test/wildcard_test.go
+++ b/test/wildcard_test.go
@@ -40,7 +40,7 @@ func TestLookupWildcard(t *testing.T) {
p := proxy.New([]string{udp})
state := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)}
- for _, lookup := range []string{"w.example.org.", "a.w.example.org.", "a.a.w.example.org."} {
+ for _, lookup := range []string{"a.w.example.org.", "a.a.w.example.org."} {
resp, err := p.Lookup(state, lookup, dns.TypeTXT)
if err != nil || resp == nil {
t.Fatalf("Expected to receive reply, but didn't for %s", lookup)