diff options
author | 2016-07-07 20:04:25 +0100 | |
---|---|---|
committer | 2016-07-07 20:04:25 +0100 | |
commit | b738d6e4e7a2e2ab957b68b98c4bc76739336362 (patch) | |
tree | aaa4e5c0cb1441206be9b77ea9501a7acdb4e310 /test | |
parent | 289f53d38674a76e666aac30342eba60837466e4 (diff) | |
download | coredns-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.go | 1 |
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 { |