diff --git a/main_test.go b/main_test.go index fe9a415b..facc1f93 100644 --- a/main_test.go +++ b/main_test.go @@ -548,7 +548,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") } }