mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
Fix issue 187: exit test (#188)
When not receiving a reply, exit the test and don't check the contents of the unreceived packet. Fixes #187
This commit is contained in:
@@ -44,6 +44,7 @@ func TestLookupProxy(t *testing.T) {
|
|||||||
resp, err := p.Lookup(state, "example.org.", dns.TypeA)
|
resp, err := p.Lookup(state, "example.org.", dns.TypeA)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error("Expected to receive reply, but didn't")
|
t.Error("Expected to receive reply, but didn't")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
// expect answer section with A record in it
|
// expect answer section with A record in it
|
||||||
if len(resp.Answer) == 0 {
|
if len(resp.Answer) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user