Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhodges committed Jun 29, 2024
1 parent 11ed185 commit b984cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestGORM(t *testing.T) {

var result User

if err := DB.Where("id = ?", user.ID).First(&result).Update("name", "jinzhu 2").Error; err != nil {
if err := DB.First(&result, user.ID).Update("name", "jinzhu 2").Error; err != nil {
t.Errorf("Failed, got error: %v", err)
}
}

0 comments on commit b984cb9

Please sign in to comment.