diff --git a/query_test.go b/query_test.go index 9531b33e..def84e04 100644 --- a/query_test.go +++ b/query_test.go @@ -222,7 +222,7 @@ func TestSearchWithStruct(t *testing.T) { } 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") }