Fixed a test

This commit is contained in:
Diptanu Choudhury 2016-11-08 15:48:47 -08:00
parent 2af135ce15
commit e057c39ea1
1 changed files with 2 additions and 2 deletions

View File

@ -103,10 +103,10 @@ func TestAgent_Members(t *testing.T) {
}
// Check that we got the expected result
if n := len(mem); n != 1 {
if n := len(mem.Members); n != 1 {
t.Fatalf("expected 1 member, got: %d", n)
}
if m := mem[0]; m.Name == "" || m.Addr == "" || m.Port == 0 {
if m := mem.Members[0]; m.Name == "" || m.Addr == "" || m.Port == 0 {
t.Fatalf("bad member: %#v", m)
}
}