Add more tests and include the forgotten chaos_test.go as well
This commit is contained in:
parent
b3a52c6988
commit
e408c81a8c
7 changed files with 372 additions and 5 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue