mirror of https://github.com/go-gorm/gorm.git
Fix typo in tests
This commit is contained in:
parent
a870874bb5
commit
08dba5378e
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue