Skip to content

Commit

Permalink
Fix first test
Browse files Browse the repository at this point in the history
  • Loading branch information
dschreij committed Jan 10, 2024
1 parent 99f8560 commit c0c58e1
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) {
tx.Create(&user)

var result User
if err := DB.First(&result, user.ID).Error; err != nil {
if err := tx.First(&result, user.ID).Error; err != nil {
t.Errorf("Failed, got error: %v", err)
}
tx.Rollback()
Expand Down

0 comments on commit c0c58e1

Please sign in to comment.