mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Dont crash on tests with etcd running
This commit is contained in:
@@ -32,6 +32,10 @@ func TestStubLookup(t *testing.T) {
|
||||
continue
|
||||
}
|
||||
resp := rec.Msg()
|
||||
if resp == nil {
|
||||
// etcd not running?
|
||||
continue
|
||||
}
|
||||
|
||||
sort.Sort(test.RRSet(resp.Answer))
|
||||
sort.Sort(test.RRSet(resp.Ns))
|
||||
|
||||
Reference in New Issue
Block a user