Add more tests and include the forgotten chaos_test.go as well

This commit is contained in:
Miek Gieben 2016-03-25 10:32:12 +00:00
parent b3a52c6988
commit e408c81a8c
7 changed files with 372 additions and 5 deletions

View file

@ -37,7 +37,7 @@ const (
)
func init() {
ctx, _ = context.WithTimeout(ctx.Background(), etcdTimeout)
ctx, _ = context.WithTimeout(context.Background(), etcdTimeout)
etcdCfg := etcdc.Config{
Endpoints: []string{"http://localhost:2379"},
@ -88,7 +88,7 @@ func TestLookup(t *testing.T) {
t.Errorf("expected no error, got %v\n", err)
return
}
resp := rec.Reply()
resp := rec.Msg()
sort.Sort(rrSet(resp.Answer))
sort.Sort(rrSet(resp.Ns))