aboutsummaryrefslogtreecommitdiff
path: root/core/parse/lexer_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-08-14 12:57:49 -0600
committerGravatar GitHub <noreply@github.com> 2016-08-14 12:57:49 -0600
commit34ffb2b31490c312b1f6bb4c27ba193d78c726cf (patch)
tree01e15a1c39f7212e6ccd9e714ea7e28cc03555b9 /core/parse/lexer_test.go
parent6d3f9d21939a8129cd8fa219a2b1e353314bdbf2 (diff)
downloadcoredns-34ffb2b31490c312b1f6bb4c27ba193d78c726cf.tar.gz
coredns-34ffb2b31490c312b1f6bb4c27ba193d78c726cf.tar.zst
coredns-34ffb2b31490c312b1f6bb4c27ba193d78c726cf.zip
Fix TestStubLookup and TestLookup (#213)
Changes large parts of proxy lookup mechanism. The duplicate zone checking erroneous added a nameserver for each zone we are auth. for, creating to many backend hosts. So even when a host was determined do be Down() we still got an (identical) new one from the list. The Down() and failure checking for upstream hosts had data race in the uh.Fails check - we now use atomic.LoadInt32 for that. Use and debug the test/server.go test servers implementation in the TestStubLookup test to prevent going out to the internet. Also delete the stub cycle test. That test was wrong and did not test what it needed to be testing. Deleted for now.
Diffstat (limited to 'core/parse/lexer_test.go')
0 files changed, 0 insertions, 0 deletions