Fixing up API tests.

This commit is contained in:
Matthew Dillon 2014-10-03 15:52:17 -08:00
parent 0eae5fc6b8
commit 1f12c9eb09
2 changed files with 5 additions and 6 deletions

View file

@ -83,9 +83,8 @@ func TestUser_List(t *testing.T) {
if !calledList {
t.Error("!calledList")
}
for i, _ := range users {
if !normalizeDeepEqual(wantUsers[i], users[i]) {
t.Errorf("got users %+v but wanted users %+v", wantUsers, users)
}
if !normalizeDeepEqual(&wantUsers, &users) {
t.Errorf("got users %+v but wanted users %+v", users, wantUsers)
}
}