Skip to content

Commit 57e8973

Browse files
committed
fix TestDeeplyNestedTransactionWithBlockAndWrappedCallback
1 parent 07f6a32 commit 57e8973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/transaction_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func TestDeeplyNestedTransactionWithBlockAndWrappedCallback(t *testing.T) {
385385
t.Fatalf("Should not find rollbacked record")
386386
}
387387

388-
if err := tx.First(&User{}, "\"name\" = ?", user2.Name).Error; err == nil {
388+
if err := tx.First(&User{}, "\"name\" = ?", user2.Name).Error; err != nil {
389389
t.Fatalf("Should not find saved record")
390390
}
391391
return nil

0 commit comments

Comments
 (0)