Dont crash on tests with etcd running
This commit is contained in:
parent
a4bf01e1ee
commit
95477fd2fe
2 changed files with 7 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue