aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-07-07 20:04:25 +0100
committerGravatar GitHub <noreply@github.com> 2016-07-07 20:04:25 +0100
commitb738d6e4e7a2e2ab957b68b98c4bc76739336362 (patch)
treeaaa4e5c0cb1441206be9b77ea9501a7acdb4e310 /test
parent289f53d38674a76e666aac30342eba60837466e4 (diff)
downloadcoredns-b738d6e4e7a2e2ab957b68b98c4bc76739336362.tar.gz
coredns-b738d6e4e7a2e2ab957b68b98c4bc76739336362.tar.zst
coredns-b738d6e4e7a2e2ab957b68b98c4bc76739336362.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/proxy_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/proxy_test.go b/test/proxy_test.go
index fc1ff2854..56ef159fb 100644
--- a/test/proxy_test.go
+++ b/test/proxy_test.go
@@ -44,6 +44,7 @@ func TestLookupProxy(t *testing.T) {
resp, err := p.Lookup(state, "example.org.", dns.TypeA)
if err != nil {
t.Error("Expected to receive reply, but didn't")
+ return
}
// expect answer section with A record in it
if len(resp.Answer) == 0 {