Fix typo in tests

This commit is contained in:
Jinzhu 2017-04-19 10:17:29 +08:00
parent a870874bb5
commit 08dba5378e
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ func TestSearchWithStruct(t *testing.T) {
} }
DB.First(&user, User{Name: user1.Name}) DB.First(&user, User{Name: user1.Name})
if user.Id == 0 || user.Name != user.Name { if user.Id == 0 || user.Name != user1.Name {
t.Errorf("Search first record with inline struct") t.Errorf("Search first record with inline struct")
} }