Skip to content

Commit

Permalink
Merge pull request go-gorm#2913 from lingceng/patch-1
Browse files Browse the repository at this point in the history
Fix TestTransactionWithBlock panic case
  • Loading branch information
huacnlee authored Mar 5, 2020
2 parents 7180bd0 + 30433f9 commit 7ea143b
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 @@ -535,7 +535,7 @@ func TestTransactionWithBlock(t *testing.T) {
})
})

if err := DB.First(&User{}, "name = ?", "transcation").Error; err == nil {
if err := DB.First(&User{}, "name = ?", "transcation-3").Error; err == nil {
t.Errorf("Should not find record after panic rollback")
}
}
Expand Down

0 comments on commit 7ea143b

Please sign in to comment.